Webux Validator

Webux File Upload

Webux Static

Webux Auth

Configuration

The default configuration,
By default there is no configuration, the logger will be configured with minimal options.

Here is the list:

Options

Descriptions

Mandatory

application_id

(Default: No label defined.) this options allows to know which instance it is to find and troobleshoot when multiple backend are deployed

No

forceConsole

(Default: Only if not in production, the console output will be enable) Otherwise, you can force the console output even in production by setting this parameter to true.

No

logstash

(Default: {}) The module will skip the configuration of logstash

No

filenames

(Default: {}) The module will skip the configuration of the files, the purpose of that option is to define specific file for each event type.

No

blacklist

(Default: {}) The module will not blacklisted elements, this option is required if you want to hide information from the logging process, for example, the password, the authorization and any other sensitive information.

Logstash

The module I used for that only accept UDP connection, so this is mandfatory to configure your logstash server with UDP support.
Also, the logger will send the log event in JSON format because otherwise the logstash is unable to filter the information properly.

Filenames

this is the list of available log event type:

error

warn

info

verbose

debug

silly

if you want to keep only some of them in a local file, you can specify like that:

...
filenames:{
error: "log/error.log"
}

You will get only the error in that file locally.

Blacklist

This is recommended to set at least all sensitives information,
otherwise you will log that information in clear text.

Webux.log object

you have to use the Webux.log object to call this function.

That object is created with winston, if you need more details, I recommend you to read the official documentation.