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: import com.tc.net.protocol.tcm.ChannelIDProvider;
07:
08: public class ChannelIDLoggerProvider implements TCLoggerProvider {
09:
10: private final ChannelIDProvider cidProvider;
11:
12: public ChannelIDLoggerProvider(ChannelIDProvider cidProvider) {
13: this .cidProvider = cidProvider;
14: }
15:
16: public TCLogger getLogger(Class clazz) {
17: return new ChannelIDLogger(cidProvider, TCLogging
18: .getLogger(clazz));
19: }
20:
21: public TCLogger getLogger(String name) {
22: return new ChannelIDLogger(cidProvider, TCLogging
23: .getLogger(name));
24: }
25:
26: }
|