log4j.properties与db.properties

时间:2019-02-19 10:02:00   收藏:0   阅读:201

log4j.properties与db.properties

    db.driver=com.mysql.jdbc.Driver
    db.url=jdbc:mysql:///mybatis?useUnicode=true&characterEncoding=utf-8&useSSL=false
    #db.username=root
    #db.password=root
    ### set log levels - for more verbose logging change ‘info‘ to ‘debug‘ ###
    # error warn info debug trace
    log4j.rootLogger=DEBUG, stdout
    # Console output...
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
    ### direct messages to file mylog.log ###
    log4j.appender.file=org.apache.log4j.FileAppender
    log4j.appender.file.File=c\:mylog.log
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

原文:https://www.cnblogs.com/fly-book/p/10399218.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!