Source code: konspire/common/log/UniqueFileLoggingMechanism.java
1 package konspire.common.log;
2
3 /**
4 * This logging mechanism is the simplest implementation of a file logging
5 * mechanism. It is designed to have one log file per log, with the name
6 * of the log as part of the file name. It doesn't do anything fancy like
7 * rolling over to a new file when a date changes, it appends all messages
8 * to the same file name if already present.
9 *
10 * @author Todd Lauinger
11 * @version $Revision: 1.3 $
12 */
13 public class UniqueFileLoggingMechanism extends AbstractFileLoggingMechanism {
14
15 // Unique mechanisms require new instances for each log!
16 public static AbstractLoggingMechanism getInstance() {
17
18 return new UniqueFileLoggingMechanism();
19 }
20
21 // Override the default, this log type is not shared.
22 protected boolean isSharedLog() {
23 return false;
24 }
25
26 }
27