stderrstrategy.java
来自「java版ace,java程序员值得一看」· Java 代码 · 共 37 行
JAVA
37 行
/************************************************* * * = PACKAGE * netsvcs.Logger * * = FILENAME * DefaultLMR.java * * *@author Everett Anderson * *************************************************/package JACE.netsvcs.Logger;import java.io.*;/** * Default LoggingStrategy for the logging service. This prints out the * LogRecord on the System.err stream. * * @see JACE.netsvcs.Logger.LogRecord */public class StderrStrategy implements LoggingStrategy{ /** * Process the given LogRecord by printing it on the System.err stream. * *@param hostname host from which this LogRecord originated *@param record LogRecord instance to process */ public void logRecord (String hostname, LogRecord record) { record.print(hostname, true, System.err); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?