English 中文(简体)
Java日志4j的航标时间越长? 如何在单一线路上印刷?
原标题:What is the length of Java log4j s log message s max length? How to print it in a single line?
  • 时间:2010-05-10 06:32:09
  •  标签:
  • java
  • log4j

在日志4j缺席伐木组合中,在服务器记录中打印的每条记录信息,最长长度约为8221个。 如超过这一长度,则以多种方式印发。 但是,我想用一个单行打印,尽管每张标识的长度有多大。

问题回答

为了在单一线路上打印记录,我做了些什么,在没有配置日期格式和其他格式的情况下,我配置了象价值=“%m%”。

<layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%m%n"/>
</layout>

这是我的需要和计划;得到了解决。

It will limit the line size to 1000 charactors.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签