add packages

This commit is contained in:
fatedier
2017-10-24 22:53:20 +08:00
parent 0559865fe5
commit 9e0fd0c4ef
54 changed files with 7315 additions and 21 deletions

View File

@@ -42,6 +42,7 @@ var colors = []brush{
newBrush("1;32"), // Notice green
newBrush("1;34"), // Informational blue
newBrush("1;34"), // Debug blue
newBrush("1;34"), // Trace blue
}
// consoleWriter implements LoggerInterface and writes messages to terminal.
@@ -55,7 +56,7 @@ type consoleWriter struct {
func NewConsole() Logger {
cw := &consoleWriter{
lg: newLogWriter(os.Stdout),
Level: LevelDebug,
Level: LevelTrace,
Colorful: runtime.GOOS != "windows",
}
return cw