01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.logging;
05:
06: /**
07: * Come here to get loggers for public / customer-facing use
08: */
09: 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 GENERIC_CUSTOMER_LOGGER = "general";
13:
14: private static final String DSO_CUSTOMER_GENERIC_LOGGER = "dso";
15: private static final String DSO_INSTRUMENTATON_LOGGER = "dso.instrumentation";
16: private static final String 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: }
|