Skip to content

Commit ce94c87

Browse files
committed
docs fix
1 parent 525ab10 commit ce94c87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ starter.registerListenerHost(new ListenerHost(){
6262
public class LogDemo {
6363
public static void main(String[] args) {
6464
//默认方式
65-
//日志文件路径
66-
LoggerImpl.INSTANCE.logFileDir = "./logs/%s.log";
65+
//日志文件路径 设置为null 时不输出文件
66+
starter.APPLICATION.logger.setOutFile("./logs/%s.log");
6767
//日志文件格式
6868
LoggerImpl.INSTANCE.dfn = new SimpleDateFormat("/yyyy-MM-dd");
6969
}

0 commit comments

Comments
 (0)