go: 一个通用log模块的实现
摘要:
在go里面,虽然有log模块,但是该模块提供的功能并不强,譬如就没有我们常用的level log功能,但是自己实现一个log模块也并不困难。 对于log的level,我们定义如下: const ( LevelTrace = iota LevelDebug LevelInfo... 阅读全文
posted @ 2014-04-07 21:36 王大王 阅读(244) 评论(0) 推荐(0)
posted @ 2014-04-07 21:36 王大王 阅读(244) 评论(0) 推荐(0)