如何在log4j.xml中的DailyRollingFileAppender中增加或设置MaxFileSize

时间:2015-08-20 12:18:21

标签: java xml log4j

在我的应用程序中,日志文件将每小时翻转一次,但日志文件无法处理或存储超过1000MB(大约)的大小。如何将日志文件的大小增加到5GB以上?

这是我的log4j.xml

var data = new Dictionary<string, int> {
    { "C1", 1},
    { "C2", 2},
    { "C3", 3}
};
var expandoObject = new ExpandoObject() as IDictionary<string, Object>;
foreach (var kvp in data) {
    expandoObject.Add(kvp.Key, kvp.Value);
}
dynamic pivotedData = expandoObject;

Console.WriteLine(pivotedData.C1);
Console.WriteLine(pivotedData.C2);
Console.WriteLine(pivotedData.C3);
Console.ReadLine();

任何帮助将不胜感激....

0 个答案:

没有答案