Classes
-
new Config( loggerName )
-
-
new Group( mode, logger, group )
-
-
new GroupMode( modeName [, greeting [, farewell [, func ] ] ] )
-
Members
-
<static> configDispatcherEnabled :boolean
-
Details
-
<static> configs :object
-
Details
-
<static> loggers :Array.<string>
-
Details
-
includeStackTrace :boolean
-
Details
-
mq :NexusHoratio.base.MessageQueue
-
Details
-
name :string
-
Details
-
silenced :boolean
-
Details
Methods
-
<static> onConfig( callback )
-
Description
Attach a function for all config change events.
Parameters
Name Type Description callbackNexusHoratio.base.Logger~ConfigMutationHandler Function that receives events.
Details
-
<static> offConfig( callback )
-
Description
Remove all instances of a function attached for config change events.
Parameters
Name Type Description callbackNexusHoratio.base.Logger~ConfigMutationHandler Function that receives events.
Details
-
<static> config( loggerName ) → {NexusHoratio.base.Logger~Config}
-
Description
Get configuration of a specific Logger.
Parameters
Name Type Description loggerNamestring Logger configuration to get.
Returns
Details
-
<static> resetConfigs()
-
Description
Reset all configs to an empty state.
Details
-
<static> clear()
-
Description
Clear the console.
Details
-
log( msg, ...rest )
-
Description
Log a specific message.
Parameters
Name Type Attributes Description msgstring Message to send to console.debug.
restobject <repeatable> Arbitrary items to pass to console.debug.
Details
-
entered( group, ...rest )
-
Description
Indicate entered a specific group.
Parameters
Name Type Attributes Description groupstring Group that was entered.
restobject <repeatable> Arbitrary items to pass to console.debug.
Details
-
leaving( group, ...rest )
-
Description
Indicate leaving a specific group.
Parameters
Name Type Attributes Description groupstring Group leaving.
restobject <repeatable> Arbitrary items to pass to console.debug.
Details
-
starting( group, ...rest )
-
Description
Indicate starting a specific collapsed group.
Parameters
Name Type Attributes Description groupstring Group that is being started.
restobject <repeatable> Arbitrary items to pass to console.debug.
Details
-
finished( group, ...rest )
-
Description
Indicate finished with a specific collapsed group.
Parameters
Name Type Attributes Description groupstring Group that was entered.
restobject <repeatable> Arbitrary items to pass to console.debug.
Details
Type Definitions
-
ConfigMutationRecord
-
Properties
Name Type Attributes Description loggerstring Name of the affected Logger instance.
groupstring <nullable> Name of a possibly affected group.
Details
-
ConfigMutationHandler( evt, record )
-
Parameters
Name Type Description evtstring Type of mutation.
recordNexusHoratio.base.Logger~ConfigMutationRecord Details about the mutation.
Details