没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > light-log |
light-log
|
0 | 0 | 26 |
贡献者 | 讨论 | 代码提交 |
light-log is a highly simple and convenient logging !API that is most suitable for small to medium projects. It is not a logging framework like log4j and such but may ease the use of those.
It has the following features:
A simple API call. No need to define a logger or give it a name. LightLog maintains and knows the logger's name. Just call LightLog.debug(), LightLog.info() etc. Logger resolution in the method level. That is, the logger's name has the class name and method name in it. Can be configured to output logs to any logging framework. A simple usage example:
public class MyClass {
public void myMethod(){
LightLog.info("Hello there ...");
}
}When the myMethod() will be called a log like the following will appear (By default LightLog outputs this to system out):
--- INFO ----------------------------------------
MyClass.myMethod(): Hello there ...Motivations for using light-log:
Easy to write logs. You can see exactly what method the log came from. Simple and convenient programmatic performance analysis API.