`

log4j output parameters

阅读更多

%m 输出代码中指定的消息

%p 输出优先级,即DEBUG,INFO,WARN,ERROR,FATAL
%r 输出自应用启动到输出该log信息耗费的毫秒数
%c 输出所属的类目,通常就是所在类的全名
%t 输出产生该日志事件的线程名
%n 输出一个回车换行符,Windows平台为“\r\n”,Unix平台为“\n”
%d 输出日志时间点的日期或时间,默认格式为ISO8601,也可以在其后指定格式,比如:%d{yyy MMM dd HH:mm:ss,SSS},输出类似:
2002年10月18日
22:10:28,921
%l 输出日志事件的发生位置,包括类目名、发生的线程,以及在代码中的行数。举例:Testlog4.main(TestLog4.java:10)

分享到:
评论

相关推荐

    JLink_Windows_V648.zip

    Firmware: Flasher Portable PLUS: Warning "J-Link low on memory" could occur after using SPI functionality of J-Link. Fixed. Firmware: J-Link EDU Mini: RISC-V: On implementations that do not populate a...

    oracle_sqluldr

    Oracle快速导出数据工具, ... log = log file name, prefix with + to append mode fast = auto tuning the session level parameters(YES) text = output type (MYSQL, CSV, MYSQLINS, ORACLEINS, FORM, SEARCH).

    使用StatSVN统计SVN版本库

    StatSVN是一个SVN版本库的... You can tweak the output of StatSVN in various ways. Run 'java -jar statsvn.jar' for an overview of the command line parameters, and check the manual for full information.

    可扩展通用异常检测框架和Java库

    ### 可扩展通用异常检测框架和Java库 #### 概述 本文将详细介绍EGADS(Extensible Generic Anomaly... java -Dlog4j.configurationFile=src/test/resources/log4j2.xml -cp target/egads-*.jar-with-dependencies.jar ...

    sqluldr24.0.1版本

    log = log file name, prefix with + to append mode fast = auto tuning the session level parameters(YES) text = output type (MYSQL, CSV, MYSQLINS, ORACLEINS, FORM, SEARCH). charset = character set ...

    sqluldr2 4.0.1版本 oracle数据导出工具

    log = log file name, prefix with + to append mode fast = auto tuning the session level parameters(YES) text = output type (MYSQL, CSV, MYSQLINS, ORACLEINS, FORM, SEARCH). charset = character set ...

    occam一维反演

    J. INT. 106, 387-388. C CONSTABLE, 1992: OCCAM DISTRIBUTION NOTES. C C REVISION HISTORY: C MARCH 1986, (VERSION 1.2) C OCTOBER 1987, (VERSION 1.3) C AUGUST 1988, (VERSION 1.4) C JANUARY 1989 (WITH ...

    LR函数经验分享

    其中,`LR_MSG_CLASS_EXTENDED_LOG`、`LR_MSG_CLASS_PARAMETERS`、`LR_MSG_CLASS_RESULT_DATA`和`LR_MSG_CLASS_FULL_TRACE`分别对应运行时设置中的“显示扩展日志”、“参数取值”、“服务器返回”和“高级跟踪”。...

    Google-output-cauldron-form:我们经常使用的表单代码

    [e.parameters.name, e.parameters.email] ]; sheet.appendRow(values); return ContentService.createTextOutput(JSON.stringify({status: 'success'})); } ``` 这段代码从POST请求的参数中提取数据,然后将...

    Tomcat5 windows服务不能启动的终极解决方法.docx

    - 对于安装版Tomcat5,需检查注册表`HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters`,确保Java项的值正确设置为`d:\j2sdk\jre\bin\server\jvm.dll`。...

    编译好的x265,带y4m文件

    编译好的x265,带y4m文件 Syntax: x265 [options] infile [-o] outfile infile can be YUV or Y4M outfile is raw HEVC bitstream Executable Options: -h/--help Show this help text and exit -V/--version ...

    libsvm使用详细介绍(含有截图)

    ##### 4. svmpredict 的用法 `svmpredict` 用于使用训练好的模型进行预测。基本使用方式如下: ```bash svmpredict [options] test_labels test_data_file model_file [output_file] ``` - `[options]` 可以指定...

    Android底层驱动开发[借鉴].pdf

    5.Low Memory Killer 低内存管理器:它在用户空间中指定了一组内存临界值,当其中某个值与进程描述中的 oom_adj 值在同一范围时,该进程将被 Kill 掉(在 parameters/adj 中指定 oom_adj 的最小值)。源码位置:...

    拟合函数--高斯,拉普拉斯,双高斯拟合

    % fit_ML_log_normal- fit log-normal distribution % fit_ML_normal - fit normal (gaussian) distribution % % NOTE: all estimators are efficient estimators. for this reason, the distribution % might ...

    IRPTrace2.00.002.zip

    Major/Minor function Generic Parameters Information Input Output -------------------------------------------------------------------------- IRP_MJ_CREATE + + N/A IRP_MJ_CREATE_NAMED_PIPE + - - ...

    php.ini-development

    log_errors ; Default Value: Off ; Development Value: On ; Production Value: On ; max_input_time ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) ; Production Value: 60 (60 ...

    BURNINTEST--硬件检测工具

    Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system detection changes. Release 5.3 build 1035 revision 3 WIN32 release 7 November 2008 - ...

    ANSYS界面命令翻译大全[定义].pdf

    * Write DB log file:输出数据库文件 * Read Input from:读入命令文件 * Switch Output to:输出结果文件 * List 显示文件内容 * File Operations:设置 ANSYS 文件的属性 * ANSYS File Options:导入其他 CAD ...

    Servlet查询数据库案例--Query(java源码)

    * initialization parameters (which come from the web.xml configuration file) * to create a single JDBC database connection, which is shared by all clients * of the servlet. ***/ public class Query...

Global site tag (gtag.js) - Google Analytics