View Javadoc

1   ////////////////////////////////////////////////////////////////////////////////
2   // MillScript: an Open Spice interpreter and batch website creation tool
3   // Copyright (C) 2004 Kevin Rogers
4   //
5   // This file is part of MillScript.
6   //
7   // MillScript is free software; you can redistribute it and/or modify it under
8   // the terms of the GNU General Public License as published by the Free
9   // Software Foundation; either version 2 of the License, or (at your option)
10  // any later version.
11  //
12  // MillScript is distributed in the hope that it will be useful, but WITHOUT
13  // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15  // more details.
16  //
17  // You should have received a copy of the GNU General Public License along with
18  // MillScript; if not, write to the Free Software Foundation, Inc., 59 Temple
19  // Place, Suite 330, Boston, MA  02111-1307  USA
20  ////////////////////////////////////////////////////////////////////////////////
21  package org.millscript.millscript.conf.logging;
22  
23  /**
24   * An "emerg" level logger, to only log "emerg" level messages.
25   */
26  public class EmergLogger implements Logger {
27  
28      /**
29       * @see org.millscript.millscript.conf.logging.Logger#alert(java.lang.Object)
30       */
31      public void alert( final Object o ) {
32      }
33  
34      /**
35       * @see org.millscript.millscript.conf.logging.Logger#alertLine(java.lang.Object)
36       */
37      public void alertLine( final Object o ) {
38      }
39  
40      /**
41       * @see org.millscript.millscript.conf.logging.Logger#crit(java.lang.Object)
42       */
43      public void crit( final Object o  ) {
44      }
45  
46      /**
47       * @see org.millscript.millscript.conf.logging.Logger#critLine(java.lang.Object)
48       */
49      public void critLine( final Object o ) {
50      }
51  
52      /**
53       * @see org.millscript.millscript.conf.logging.Logger#debug(java.lang.Object)
54       */
55      public void debug( final Object o ) {
56      }
57  
58      /**
59       * @see org.millscript.millscript.conf.logging.Logger#debugLine(java.lang.Object)
60       */
61      public void debugLine( final Object o ) {
62      }
63  
64      /**
65       * @see org.millscript.millscript.conf.logging.Logger#emerg(java.lang.Object)
66       */
67      public void emerg( final Object o ) {
68          System.out.print( o );
69      }
70  
71      /**
72       * @see org.millscript.millscript.conf.logging.Logger#emergLine(java.lang.Object)
73       */
74      public void emergLine( final Object o ) {
75          System.out.println( o );
76      }
77  
78      /**
79       * @see org.millscript.millscript.conf.logging.Logger#error(java.lang.Object)
80       */
81      public void error( final Object o ) {
82      }
83  
84      /**
85       * @see org.millscript.millscript.conf.logging.Logger#errorLine(java.lang.Object)
86       */
87      public void errorLine( final Object o ) {
88      }
89  
90      /**
91       * @see org.millscript.millscript.conf.logging.Logger#info(java.lang.Object)
92       */
93      public void info( final Object o ) {
94      }
95  
96      /**
97       * @see org.millscript.millscript.conf.logging.Logger#infoLine(java.lang.Object)
98       */
99      public void infoLine( final Object o ) {
100     }
101 
102     /**
103      * @see org.millscript.millscript.conf.logging.Logger#notice(java.lang.Object)
104      */
105     public void notice( final Object o ) {
106     }
107 
108     /**
109      * @see org.millscript.millscript.conf.logging.Logger#noticeLine(java.lang.Object)
110      */
111     public void noticeLine( final Object o ) {
112     }
113 
114     /**
115      * @see org.millscript.millscript.conf.logging.Logger#print(java.lang.Object)
116      */
117     public void print( final Object o ) {
118         System.out.print( o );
119     }
120 
121     /**
122      * @see org.millscript.millscript.conf.logging.Logger#println(java.lang.Object)
123      */
124     public void println( final Object o ) {
125         System.out.println( o );
126     }
127 
128     /**
129      * @see org.millscript.millscript.conf.logging.Logger#stackTrace(java.lang.Throwable)
130      */
131     public void stackTrace( final Throwable t ) {
132     }
133 
134     /**
135      * @see org.millscript.millscript.conf.logging.Logger#warn(java.lang.Object)
136      */
137     public void warn( final Object o ) {
138     }
139 
140     /**
141      * @see org.millscript.millscript.conf.logging.Logger#warnLine(java.lang.Object)
142      */
143     public void warnLine( final Object o ) {
144     }
145 
146 }