Logger
A simple console log plugin to log actions as they are processed.
Installation
Usage
Add the NgxsLoggerPluginModule
plugin to your root app module:
Options
The plugin supports the following options passed via the forRoot
method:
logger
: Supply a different logger, useful for logging to backend. Defaults toconsole
.collapsed
: Collapse the log by default or not. Defaults to true.disabled
: Disable the logger during production.
Notes
You should always include the logger as the last plugin in your configuration. For instance, if you were to include logger before a plugin like the storage plugin, the initial state would not be reflected.
Last updated