01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.log.adapter;
10:
11: import com.completex.objective.components.log.impl.PrimitiveLogImpl;
12:
13: /**
14: * Standard output log implementation
15: * @see PrimitiveLogImpl
16: *
17: * @author Gennady Krizhevsky
18: */
19: public class StdOutputLogAdapter extends PrimitiveLogImpl {
20:
21: private StdOutputLogAdapter() {
22: super (System.out);
23: }
24:
25: public static StdOutputLogAdapter newLogInstance() {
26: return new StdOutputLogAdapter();
27: }
28:
29: public static StdOutputLogAdapter newInfoLogInstance() {
30: return newLogInstance(false);
31: }
32:
33: public static StdOutputLogAdapter newLogInstance(
34: boolean debugEnabled) {
35: StdOutputLogAdapter logger = new StdOutputLogAdapter();
36: logger.setDebugEnabled(debugEnabled);
37: return logger;
38: }
39:
40: }
|