Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Options

Andrey Pavlov edited this page Apr 9, 2016 · 12 revisions

Configuring logger used substance named 'Options'.

Options are of two types: user and specific.

User Opitions

fileNamePrefix - file prefix

fileNameExtension - file extension

logIntoConsole - should be true if you want to log into console

logIntoFile - should be true if you want to log into files (if this param is enabled, you must add pathToLogsFolder field)

pathToLogsFolder - path to your logs location

Example

{ 
	fileNamePrefix: 'log-',
	fileNameExtension: '.log',
	logIntoConsole: true,
	logIntoFile: true,
	pathToLogsFolder: __dirname
}

Specific Options

env - level of logging

logType - type of logger

Example

{ 
	env: 'test',
	logType: 'log'
}
Clone this wiki locally