## Modules
Simple and easy to use logger.
Logger class.
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
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.Logger
](#Logger) - Logger instance
| Param | Type | Description |
| --- | --- | --- |
| desc | option
| Logger option |
| mod | option
| modulename to output |