zoukankan      html  css  js  c++  java
  • log4j ERROR Category option "1." not a decimal integer

    g4j: Setting property [conversionPattern] to [%d{dd MMM yyyy HH:mm:ss.SSS} [%p] [%t] [%c{1.}] - %m%n].
    log4j:ERROR Category option "1." not a decimal integer.
    java.lang.NumberFormatException: For input string: "1."
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.parseInt(Integer.java:615)
    ………
    log4j: Adding appender named [stdout] to category [root].

    Solution1

    Solution2

    解决方案:
    log4j.properties 的配置文件有问题
    log4j.appender.stdout.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{ 1 }:%L - %m%n
    去除 1 前后的空格即可。

  • 相关阅读:
    mysql事务
    mysql函数
    mysql自连接
    MYSQL添加外键关联
    SQL多表查询
    SQL数据完整性
    SQL limit
    SQL分组查询
    升级GCC 6.2编译LLVM的问题
    Quartz时SLF4J错误
  • 原文地址:https://www.cnblogs.com/frankcui/p/15633347.html
Copyright © 2011-2022 走看看