The Logia module. The returned value of require("logia").
Parameters
name
string The logger name that we want to create/retrieve
Returns logger The newly created or retrieved logger instance
Overwrites the configuration file on disk if the "overwritable" option is set to true. NOOP when executing in the browser.
Parameters
config
object An object that defines any of the LogiaConfig properties.
Sets the date format in the logs.
Parameters
Sets the global Logia configuration. It doesn't overwrite the configuration file on disk.
Parameters
config
object An object that defines any of the LogiaConfig properties
Enters slave mode. Logia configuration is dictated by the specified Logia master node.
Parameters
Exits slave mode. Logia configuration is based on local configuration file again.
Enters master mode. A master Logia node can command multiple slave nodes via the master node configuration mechanism.
Parameters
Exits master mode.
Listens for certain server events. Currently the only supported event is the "log" event which is triggered when Logia server receives a log.
Parameters
The Logia configuration object.
Properties
level
objectappenders
objectremotes
objectserver
objectstdout
booleandateFormat
stringoverwritable
boolean
We can define n-number of logger-name regexp properties in level
Properties
logger_name_regexp
string (fatal|error|warn|info|debug|trace).
We can define n-number of logger-name regexp properties in appenders
Properties
logger_name_regexp
object {filepath: {string}, maxSize: {number}}
We can define n-number of logger-name regexp properties in remotes
Properties
logger_name_regexp
object {protocol: {string}, url: {string}}
Run Logia either as a master or slave instance
Properties
Logia logger instance.
Parameters
name
Log in warn level
Parameters
text
string It can be parameterized by using "{0}".."{n}" placeholdersparameters
...any n-th parameter replaces "{n}" placeholder in log text
Log in info level
Parameters
text
string It can be parameterized by using "{0}".."{n}" placeholdersparameters
...any n-th parameter replaces "{n}" placeholder in log text
Log in trace level
Parameters
text
string It can be parameterized by using "{0}".."{n}" placeholdersparameters
...any n-th parameter replaces "{n}" placeholder in log text
Log in error level
Parameters
text
string It can be parameterized by using "{0}".."{n}" placeholdersparameters
...any n-th parameter replaces "{n}" placeholder in log text
Log in fatal level
Parameters
text
string It can be parameterized by using "{0}".."{n}" placeholdersparameters
...any n-th parameter replaces "{n}" placeholder in log text
Log in debug level
Parameters
text
string It can be parameterized by using "{0}".."{n}" placeholdersparameters
...any n-th parameter replaces "{n}" placeholder in log text
Enables/disables stdout of logger
Parameters
isEnabled
boolean
Returns logger
Sets logger level
Parameters
newLogLevel
string
Returns logger
Sets logger file appender
Parameters
appenderOptions
object See LogiaConfig
Returns logger
Sets loggers remote
Parameters
Returns logger