BOS物流項目06———bos-web模組配置之log4j.properties_物流

來源:互聯網
上載者:User

BOS物流項目06bos-web模組配置之log4jproperties 一log4jproperties配置 二log4jproperties 源碼位置 三log4j教程 四源碼下載

BOS物流項目06———bos-web模組配置之log4j.properties 一、log4j.properties配置

### direct log messages to stdout ###log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target=System.errlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n### direct messages to file mylog.log ###log4j.appender.file=org.apache.log4j.FileAppenderlog4j.appender.file.File=/Volumes/wiming/log/bos.loglog4j.appender.file.layout=org.apache.log4j.PatternLayoutlog4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n### set log levels - for more verbose logging change 'info' to 'debug' ###### fatal error warn info debug tracelog4j.rootLogger=debug, stdout

下面這個是記錄日誌的位置

log4j.appender.file.File=/Volumes/wiming/log/bos.log

下面的這句代表的是,日誌的層級和輸出方式,這裡是debug層級,標準輸出(控制台)

log4j.rootLogger=debug, stdout
二、log4j.properties 源碼位置

https://github.com/wimingxxx/bos-parent/blob/master/bos-web/src/main/resources/log4j.properties 三、log4j教程

log4j教程 四、源碼下載

https://github.com/wimingxxx/bos-parent

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.