KickJava   Java API By Example, From Geeks To Geeks.

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


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