log4j.properties与db.properties

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
posted @ 2019-02-19 09:34  fly_bk  阅读(208)  评论(0编辑  收藏  举报