未验证 提交 56f71509 编写于 作者: 梦境迷离's avatar 梦境迷离 提交者: GitHub

Update howToUse.md

上级 55fc2866
......@@ -149,7 +149,7 @@ def getStr(k: Int): String = this.synchronized(k.$plus(""))
- 说明
- `verbose` 指定是否开启详细编译日志。可选,默认`false`
- `logType` 指定需要生成的`log`的类型。可选,默认`JLog`
- `logType` 指定需要生成的`log`的类型。可选,默认`io.github.dreamylost.logs.LogType.JLog`
- `io.github.dreamylost.logs.LogType.JLog` 使用 `java.util.logging.Logger`
- `io.github.dreamylost.logs.LogType.Log4j2` 使用 `org.apache.logging.log4j.Logger`
- `io.github.dreamylost.logs.LogType.Slf4j` 使用 `org.slf4j.Logger`
......@@ -164,7 +164,10 @@ def getStr(k: Int): String = this.synchronized(k.$plus(""))
log.info("hello")
}
@log(verbose=true, logType=io.github.dreamylost.LogType.Slf4j) class TestClass6(val i: Int = 0, var j: Int){ log.info("hello world") }
@log(verbose=true, logType=io.github.dreamylost.logs.LogType.Slf4j)
class TestClass6(val i: Int = 0, var j: Int) {
log.info("hello world")
}
```
## @apply
......@@ -255,4 +258,4 @@ class Person extends scala.AnyRef {
state.map(((x$2) => x$2.hashCode())).foldLeft(0)(((a, b) => 31.$times(a).$plus(b)))
}
}
```
\ No newline at end of file
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册