an exemplary module "Persons" would look like this:
PERS: { fullName: 'Persons', color: '#0ff', devLevel: 3, prodLevel: 1 }
PERS
will be used to reference the module in the logs and is kept short for lazinessSome default modules will be set and can be overwritten here:
will be automatically set when there is no .module(...)
chained on Loxer.log()
, Loxer.open()
or Loxer.of()
when the opening log had no module too. The default is defined as:
NONE: { fullName: '', color: '#fff', devLevel: 1, prodLevel: 1 }
This module will not have a module name or a box layout at the output.
will be automatically set when Loxer.log()
or Loxer.open()
logs are chained with an empty .module()
.
The default is defined as:
DEFAULT: { fullName: '', color: '#fff', devLevel: 1, prodLevel: 1 }
This module will have an empty module name, but a box layout at the output.
will be automatically set when any given module does not exist (as a key) in the given LoxerOptions.modules in the
Loxer.init(options)
. This module is a visual indicator for misspelled or missing moduleIds. Additionally this
module is serves as a fallback mechanism and should therefore never be overwritten with undefined
!
The default is defined as:
INVALID: { fullName: 'INVALIDMODULE', color: '#f00', devLevel: 1, prodLevel: 0 }
This module will have a moduleName (INVALIDMODULE
), but no box layout at the output.
determines if Loxer is running in a development or production environment.
process.env.NODE_ENV === 'development'
is common for NodeJS__DEV__
is common for react-nativeprocess.env.NODE_ENV === 'development'
Functions called as an output stream for Loxer.. The output stream is divided into 4 different streams, depending on the environment and the type of log:
devLog
: logs occurring in development environmentprodLog
: logs occurring in production environmentdevError
: errors occurring in development environmentprodError
: errors occurring in production environmentThe Configuration of Loxer.
The default levels to show logs in production or development. These will automatically be adapted to the default
module NONE
and DEFAULT
. If you want to set them differently, then you have to override them in the modules
option.
devLevel: 1
and prodLevel: 0
Generated using TypeDoc
Options for the {@link Loxer.init} method