【文件属性】:
文件名称:logger:不要让我考虑登录
文件大小:69KB
文件格式:ZIP
更新时间:2021-06-16 09:35:16
Java
不要让我考虑登录
简单的日志记录...只是使用。
Log.debug("Log this to System.out and to File if -Dlog.file=/tmp/my.log property is set.");
try {
throw new Exception("This is never gonna work Sponge Bob!");
} catch(Exception ex) {
Log.debug("A trace log statement with an Exception", ex);
}
Log.newLogger().file("/tmp/test_app.log").level("info").tags("TestApp").add();
Log.info("This will show up on all log
【文件预览】:
logger-master
----.gitignore(138B)
----settings.gradle(0B)
----build.gradle(874B)
----src()
--------main()
--------test()
----gradlew(5KB)
----README.md(533B)
----gradlew.bat(2KB)
----gradle.properties(109B)
----gradle()
--------wrapper()
----.gitattributes(331B)