PLANTA pulse Logger
Information
The PLANTA pulse logger can be configured to document the operation of the software.
The related settings are configured in the Meteor Settings.
Default Configuration
The following configuration is used when no configuration is defined in the Meteor Settings.
"logger": {
"enable":true,
"path":"logs",
"transports": {
"console":["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"],
"mongodb":["ERROR", "FATAL"]
}
}
Details
enable: de/activates the loggerpath: Directory of the log filesdisableConsoleRedirect: Disable the console redirect.The redirect is always active as long as there is a logger configuration and this value is not set to
true.
maxEntries: Maximum number of entries before entries are replacedDefault: 5000
maxSize: Maximum size in byteDefault: 25000000
transports: defines where the logs are displayedconsole: logs are displayed in the consolefile: logs are saved in log filesThe logs are displayed in the
/logsdirectory if no otherpathwas defined.
mongodb: logs are saved in the MongoDBThe log files are saved in the
AppLogscollection.
For each of the transports lists of log levels need to be entered as values:
TRACE: Detailed logs for finding errorsDEBUG: logs with debug informationINFO: general informationWARN: information on undesirable states which could potentially cause errorsERROR: information on errorsFATAL: information on critical errors
Note
Logs which are saved in the MongoDB can also be viewed in the Administration panel → Application Logs.
Example of a complete log output on all levels:
"logger": {
"enable": true,
"path": "logs",
"transports": {
"console": ["INFO", "DEBUG", "ERROR", "FATAL", "WARN"],
"file": ["INFO", "DEBUG", "ERROR", "FATAL", "WARN"],
"mongodb": ["INFO", "DEBUG", "ERROR", "FATAL", "WARN"]
}
}