1
0
mirror of https://github.com/beego/bee.git synced 2024-11-14 17:00:54 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
Faissal Elamraoui
7fcbba0f53 Initialize the logger templates inside the logger singleton once (and only once) 2016-11-20 11:54:12 +01:00
Faissal Elamraoui
6b27ef186a This makes the logger instance a singleton 2016-11-16 12:33:01 +01:00
Faissal Elamraoui
21fc177551 Acquire lock when logging 2016-11-15 12:25:37 +01:00
Faissal Elamraoui
deacdaa667 Fixes the filename and lineNo in debug log message 2016-11-14 18:05:34 +01:00
Faissal Elamraoui
0e54238559 Included leading zeros for the log record ID 2016-11-13 15:06:34 +01:00
Faissal Elamraoui
b4e13b5529 Logging infrastructure for Bee
logger.go implements the logging infrastructure for Bee.
The end user can set the preferred backend (that implements io.Writer).
It supports multiple logging levels, and logs are sent to the output
colored based on each level. Debug logs are treated differently, i.e.
they will be sent to the output unless DEBUG_ENABLED is set to "1".
2016-11-13 13:46:32 +01:00