应用日志 golang:简单的记录器 状态:生产就绪:版本2 package applog import ( "log" "os" ) output := log . New ( os . Stdout , "" , 0 ) debugLogger := NewDebugLogger ( output ) debugLogger . Always ( "always: log message" ) debugLogger . Info ( "info: log message" ) debugLogger . Debug ( "debug: log message" ) // outpu