KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > logging > CustomerLogging


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.logging;
5
6 /**
7  * Come here to get loggers for public / customer-facing use
8  */

9 public class CustomerLogging {
10
11   // Logger names. You'll want to keep these unique unless you really want to cross streams
12
private static final String JavaDoc GENERIC_CUSTOMER_LOGGER = "general";
13
14   private static final String JavaDoc DSO_CUSTOMER_GENERIC_LOGGER = "dso";
15   private static final String JavaDoc DSO_INSTRUMENTATON_LOGGER = "dso.instrumentation";
16   private static final String JavaDoc DSO_RUNTIME_LOGGER = "dso.runtime";
17
18   private CustomerLogging() {
19     // no need to instaniate me
20
}
21
22   public static TCLogger getConsoleLogger() {
23     return TCLogging.getConsoleLogger();
24   }
25
26   public static TCLogger getGenericCustomerLogger() {
27     return TCLogging.getCustomerLogger(GENERIC_CUSTOMER_LOGGER);
28   }
29
30   public static TCLogger getDSOInstrumentationLogger() {
31     return TCLogging.getCustomerLogger(DSO_INSTRUMENTATON_LOGGER);
32   }
33
34   public static TCLogger getDSOGenericLogger() {
35     return TCLogging.getCustomerLogger(DSO_CUSTOMER_GENERIC_LOGGER);
36   }
37
38   public static TCLogger getDSORuntimeLogger() {
39     return TCLogging.getCustomerLogger(DSO_RUNTIME_LOGGER);
40   }
41 }
42
Popular Tags