如果想生成基于模式的特定格式的日志信息,那么可以使用org.apache.log4j.PatternLayout 格式化日志 ... Layout 类并覆盖format()方法根据提供的模式构建日志信息。
確定! 回上一頁