## Modules
jsclass-logger

Simple and easy to use logger.

## Classes
Logger

Logger class.

## Functions
getLogger(desc, mod)Logger

Get logger instance. supprted options are as below.
-debug: true / false
-toFile: true / false
-outDir: directory to output log file, by default it is "./log/"
-rotate: function to check when to rotate log file, should return true / false
-generation: log files to keep on disk
-ts: timestamp format in YYYYMMDDhhmmsszzz format

## jsclass-logger Simple and easy to use logger. ## Logger Logger class. **Kind**: global class * [Logger](#Logger) * [.debug(msg)](#Logger+debug) * [.info(msg)](#Logger+info) * [.warn(msg)](#Logger+warn) * [.trace(msg)](#Logger+trace) * [.error(msg)](#Logger+error) ### logger.debug(msg) Output log at DEBUG level, which is a debug level. **Kind**: instance method of [Logger](#Logger) | Param | Type | Description | | --- | --- | --- | | msg | any | Log message. | ### logger.info(msg) Output log at INFO level, which is a production level. **Kind**: instance method of [Logger](#Logger) | Param | Type | Description | | --- | --- | --- | | msg | any | Log message. | ### logger.warn(msg) Output log at WARN level, which is a production level. **Kind**: instance method of [Logger](#Logger) | Param | Type | Description | | --- | --- | --- | | msg | any | Log message. | ### logger.trace(msg) Output log at TRACE level, which is a debug level. **Kind**: instance method of [Logger](#Logger) | Param | Type | Description | | --- | --- | --- | | msg | any | Log message. | ### logger.error(msg) Output log at ERROR level, which is a production level. **Kind**: instance method of [Logger](#Logger) | Param | Type | Description | | --- | --- | --- | | msg | any | Log message. | ## getLogger(desc, mod) ⇒ [Logger](#Logger) Get logger instance. supprted options are as below.
-debug: true / false
-toFile: true / false
-outDir: directory to output log file, by default it is "./log/"
-rotate: function to check when to rotate log file, should return true / false
-generation: log files to keep on disk
-ts: timestamp format in YYYYMMDDhhmmsszzz format
**Kind**: global function **Returns**: [Logger](#Logger) - Logger instance | Param | Type | Description | | --- | --- | --- | | desc | option | Logger option | | mod | option | modulename to output |