`
dengyin2000
  • 浏览: 1219097 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

A common log sample.

阅读更多

# Log4j configuration file.
log4j.rootCategory=INFO, Console, X
log4j.logger.com.fsillc.remote.server=DEBUG, R
log4j.logger.com.fsillc.remote.server.CalculatorImplementation=DEBUG, Y
log4j.logger.com.fsillc.remote.server.FSINamingServer=DEGUG, Z
log4j.logger.com.fsillc.tabs.defaults.RemoteCalculatorProvider=DEGUG, W

# Available levels are DEBUG, INFO, WARN, ERROR, FATAL

#
# A1 is a ConsoleAppender
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-5p - %F(%L): %m%n


log4j.appender.X=org.apache.log4j.RollingFileAppender
log4j.appender.X.File=c:\\jndi_log\\gui.log
log4j.appender.X.layout=org.apache.log4j.PatternLayout
log4j.appender.X.layout.ConversionPattern=%-5p [%t][%d] - %F(%L): %m%n
log4j.appender.X.MaxFileSize=10000KB
log4j.appender.X.MaxBackupIndex=20


log4j.appender.Y=org.apache.log4j.RollingFileAppender
log4j.appender.Y.File=c:\\jndi_log\\calc.log
log4j.appender.Y.layout=org.apache.log4j.PatternLayout
log4j.appender.Y.layout.ConversionPattern=%-5p [%t][%d] - %F(%L): %m%n
log4j.appender.Y.MaxFileSize=10000KB
log4j.appender.Y.MaxBackupIndex=20


log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:\\jndi_log\\jndi.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%-5p [%t][%d] - %F(%L): %m%n
log4j.appender.R.MaxFileSize=10000KB
log4j.appender.R.MaxBackupIndex=20

log4j.appender.Z=org.apache.log4j.RollingFileAppender
log4j.appender.Z.File=c:\\jndi_log\\namingServer.log
log4j.appender.Z.layout=org.apache.log4j.PatternLayout
log4j.appender.Z.layout.ConversionPattern=%-5p [%t][%d] - %F(%L): %m%n
log4j.appender.Z.MaxFileSize=10000KB
log4j.appender.Z.MaxBackupIndex=20

log4j.appender.W=org.apache.log4j.RollingFileAppender
log4j.appender.W.File=c:\\jndi_log\\calcProvider.log
log4j.appender.W.layout=org.apache.log4j.PatternLayout
log4j.appender.W.layout.ConversionPattern=%-5p [%t][%d] - %F(%L): %m%n
log4j.appender.W.MaxFileSize=10000KB
log4j.appender.W.MaxBackupIndex=20

 

分享到:
评论

相关推荐

    sample-common

    "sample-common"可能会有一些如`com.sample.common.util`或`com.sample.common.db`这样的包,分别代表工具类和数据库操作等功能。 3. **接口与实现**:Java提倡面向接口编程,因此项目中可能会定义一些公共接口,...

    log打印和分析工具mylog.zip

    "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": [], "bdPic": "", "bdStyle": "1", "bdSize": "24" }, "share": {} }; with (document)0[(getElementsByTagName('...

    VB编程资源大全(英文源码 其它)

    6 , chunks.zip This will open a file and read it in "Chunks" of a selected file.<END><br>7 , logging.zip This is a bas that will log installation procedures so the file can be removed later....

    Serial Port Server with sample code

    It not only provides common funtions about serail communications, but also ;; provides USB serial port converter detecting/auto-connecting. When the USB ;; device changing is detected, the CDC serial...

    VB编程资源大全(英文源码 控制)

    "<END><br>17 , statusbar.zip "This is a sample of the StatusBar control that is part of the Microsoft Windows Common Controls(COMCTL32.OCX). "<END><br>18 , tabstrip.zip "This is a sample of the...

    BURNINTEST--硬件检测工具

    in a log file. - Updated license management, in an attempt to remove a rare crash on startup. Release 5.3 build 1012.0002 WIN32 release 31 October 2007 - New build of Rebooter (64-bit Windows ...

    微软内部资料-SQL性能优化5

    Both Index Types Have Many Common Features An index consists of a tree with a root from which the navigation begins, possible intermediate index levels, and bottom-level leaf pages. You use the index ...

    require-or-die:需要返回值的 common-js 模块和 js 文件

    rod ( './sample.js' , function ( err , value ) { console . log ( value ) ;} )应用程序接口要求(路径,[选项],回调)小路类型: String 所需文件的路径(将由require.resolve解析)。选项类型: Object 选项,...

    ICS delphixe10源码版

    .\Samples Delphi Win32/Win64 common source for all demos .\Samples\delphi\BroswerDemo Delphi Win32/Win64 Web Browser sample application (all Delphi versions) .\Samples\delphi\BroswerDemo\Resources ...

    statistica 全套教程包括数据挖掘

    A single-sample t-test compares the mean of a single group to a known value. **Frequency Tables** display the distribution of categorical variables. They help in understanding the frequency of ...

    微软内部资料-SQL性能优化2

    Before we look at how SQL Server uses and manages its memory, we need to ensure a full understanding of the more common memory related terms. The following definitions will help you understand how SQL...

    UE(官方下载)

    You can use these functions to insert a file into the active file, insert a string into the file at every specified increment, sample colors from anywhere on your screen, and more. Using Bookmarks ...

    proxy:强大的拦截库,使您可以在运行时更改对象和类的行为

    public class FluentExample { public static class SomeImpl { // sample class public void log ( String log ) { System . out . println(log); } } public static void main ( String [] args ) throws ...

    【精美排版】浅析监视并记录Apache网站服务器的运.doc

    TransferLog logs/sample.log ``` 这里使用`CustomLog`指令创建了一个名为`access_log`的新日志文件,并指定了日志格式为`common`;`TransferLog`指令同样可以用来创建日志文件,但通常仅接受最近一次`LogFormat`...

    Apache Geronimo 2.1_ Quick Reference.pdf

    Running a sample application with Farm deployment 322 Summary 323 Chapter 13: Logging 325 Configuring Apache Geronimo logging 326 Configuring application logging 327 Using log4j 327 Logging to ...

    Visual C++ 编程资源大全(英文源码 系统)

    clipspy_src.zip A tool for viewing clipboard and drag-and-drop data(40KB)<END><br>8,DateClass.zip A class that simplifies common date handling tasks(41KB)<END><br>9,CCPUTicker_src.zip An ...

    浅析监视并记录Apache网站服务器的运.doc

    TransferLog logs/sample.log ``` #### 五、日志输出重定向 除了将日志写入文件,还可以将日志输出重定向到外部程序,例如Apache自带的`rotatelogs`程序,用于日志轮转: ```apacheconf TransferLog "|bin/...

    Beginning T-SQL with Microsoft SQL Server 2005 and 2008

    Our goal in writing this book was to cover all the basics thoroughly and to cover the most common applications of T-SQL at a deeper level. Depending on your role and skill level, this book will serve...

    OS390安装与启动(hercules)

    2. **运行DB2操作**:通过TSO SDSF LOG功能,运行DB2相关的操作,如查询DSN为`CENTER.SAMPLE.JCL`的数据集,查找特定`MEMBER`并提交处理。 以上步骤详细介绍了如何在Windows XP环境下使用Hercules模拟器安装并启动...

Global site tag (gtag.js) - Google Analytics