public class LogRecorder extends Object implements AutoCloseable
| Constructor and Description |
|---|
LogRecorder() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(String info,
Object... vals)
记录单行日志 (不还行)
|
void |
close() |
void |
error(String title,
Throwable throwable)
记录错误信息
|
Charset |
getCharset() |
File |
getFile() |
PrintWriter |
getPrintWriter()
获取 文件输出流
|
void |
info(String info,
Object... vals)
记录单行日志
|
public Charset getCharset()
public File getFile()
public void error(String title, Throwable throwable)
title - 错误描述throwable - 堆栈信息public PrintWriter getPrintWriter()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2017–2022. All rights reserved.