* Do not open file in constructor, we can do this lazily.
This commit is contained in:
parent
2cea688e10
commit
e41f6c02f1
1 changed files with 0 additions and 2 deletions
|
@ -60,8 +60,6 @@ public class FileLogger extends Logger implements Log {
|
||||||
logdir.mkdirs();
|
logdir.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
openFile();
|
|
||||||
|
|
||||||
// create a synchronized list for log entries since different threads may
|
// create a synchronized list for log entries since different threads may
|
||||||
// attempt to modify the list at the same time
|
// attempt to modify the list at the same time
|
||||||
entries = Collections.synchronizedList(new LinkedList());
|
entries = Collections.synchronizedList(new LinkedList());
|
||||||
|
|
Loading…
Add table
Reference in a new issue