Package csw.logging.client.javadsl
Class JLoggingSystemFactory
- java.lang.Object
-
- csw.logging.client.javadsl.JLoggingSystemFactory
-
public class JLoggingSystemFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JLoggingSystemFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static csw.logging.client.internal.LoggingSystemforTestingOnly(akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)static csw.logging.client.internal.LoggingSystemstart()The factory used to create the LoggingSystem.static csw.logging.client.internal.LoggingSystemstart(java.lang.String name, java.lang.String version, java.lang.String hostName, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)The factory used to create the LoggingSystem.static csw.logging.client.internal.LoggingSystemstart(java.lang.String name, java.lang.String version, java.lang.String hostName, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem, java.util.List<LogAppenderBuilder> appenders)The factory used to create the LoggingSystem.
-
-
-
Method Detail
-
start
public static csw.logging.client.internal.LoggingSystem start(java.lang.String name, java.lang.String version, java.lang.String hostName, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)The factory used to create the LoggingSystem.LoggingSystemshould be started once in an app.- Parameters:
name- The name of the logging system. If there is a file appender configured, then a file with this name is created on local machine.version- the version of the csw which will be a part of log statementshostName- the host address which will be a part of log statementsactorSystem- the ActorSystem used to create LogActor from LoggingSystem- Returns:
- the instance of LoggingSystem
-
start
public static csw.logging.client.internal.LoggingSystem start()
The factory used to create the LoggingSystem.LoggingSystemshould be started once in an app.Note that it is recommended to use this method only for testing
- Returns:
- the instance of LoggingSystem
-
start
public static csw.logging.client.internal.LoggingSystem start(java.lang.String name, java.lang.String version, java.lang.String hostName, akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem, java.util.List<LogAppenderBuilder> appenders)The factory used to create the LoggingSystem.LoggingSystemshould be started once in an app.Note that it is recommended to use this method only for testing
- Parameters:
name- The name of the logging system. If there is a file appender configured, then a file with this name is created on local machine.version- the version of the csw which will be a part of log statementshostName- the host address which will be a part of log statementsactorSystem- the ActorSystem used to create LogActor from LoggingSystemappenders- the list of appenders given programmatically- Returns:
- the instance of LoggingSystem
-
forTestingOnly
public static csw.logging.client.internal.LoggingSystem forTestingOnly(akka.actor.typed.ActorSystem<akka.actor.typed.SpawnProtocol.Command> actorSystem)
-
-