1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.danube.support.logging.util;
14
15 import org.abstracthorizon.pasulj.PasuljInfo;
16
17
18
19
20
21
22 public class LogFileRotatorImplBeanInfo extends PasuljInfo {
23
24
25
26
27 public LogFileRotatorImplBeanInfo() {
28 this(LogFileRotatorImpl.class);
29 }
30
31
32
33
34
35 protected LogFileRotatorImplBeanInfo(Class<?> cls) {
36 super(cls);
37 }
38
39
40
41
42 public void init() {
43 addProperty("logFile", "Log file. Set this or logDirectory + logFileName");
44 addProperty("logDirectory", "Path to log file. Set together with logFileName");
45 addProperty("logFileName", "Name part of the log file. Set together with logDirectory");
46 addProperty("numberOfGenerations", "Number of generations log file will be maintained for, -1 if unlimited or 0 for none");
47 addProperty("maxSize", "Max log file size before new generation is made or -1 if unlimited");
48 addProperty("maxAge", "Max age in milliseconds before new generation is made or -1 if unlimited");
49 addProperty("timeOfDay", "Time of the day in the form of a calendar when new generation is going to be created. May be null.");
50
51 addProperty("bufferLen", "Buffer len for output file", true, false);
52 addProperty("checkDelayMillis", "Delay before checks are made", true, false);
53 }
54
55 }