KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mortbay > log > NullLogSink


1 // ========================================================================
2
// Copyright (c) 1997 MortBay Consulting, Sydney
3
// $Id: NullLogSink.java,v 1.1 2004/06/04 21:37:20 gregwilkins Exp $
4
// ========================================================================
5

6 package org.mortbay.log;
7
8 public class NullLogSink implements LogSink
9 {
10     private boolean started;
11     public void setOptions(String JavaDoc options){}
12     public String JavaDoc getOptions(){return null;}
13     public void log(String JavaDoc tag,Object JavaDoc msg,Frame frame,long time){}
14     public void log(String JavaDoc formattedLog){}
15     public void start(){started=true;}
16     public void stop(){started=false;}
17     public boolean isStarted(){return started;}
18     public void setLogImpl(LogImpl impl){}
19 }
20
Popular Tags