Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The server's logging works with winston library, in the logging configuration we can specify a few properties which will be listed below

Code Block
languagejs
themeDJango
titleDefault logging configuration
{
    logging: {
        log_folder: __utils.absPath('./logs/'),
        transports: {
            console: {
                level: 'info',
                enable: true
            },
            file: {
                level: 'info',
                enable: true
            }
        }
    }
}
  • log_folder - Folder location holding the logging files
  • transports - output locations for the log files, each one with 2 properties level and enable
    • console - displays logs messages in the console
    • file - writes logs directly to the files


Info

Available levels for each transport, in order of highest to lowest errorwarningnoticeinfo and debug