Asterisk-Java

org.asteriskjava.util.internal
Class JavaLoggingLog

java.lang.Object
  extended by org.asteriskjava.util.internal.JavaLoggingLog
All Implemented Interfaces:
Log

public class JavaLoggingLog
extends java.lang.Object
implements Log

Implementation of Log that maps to the Logger of the java.util.logging package.

Kindly donated by Sun's Steve Drach.

Author:
drach

Constructor Summary
JavaLoggingLog(java.lang.Class clazz)
          Creates a new JavaLoggingLog obtained from java.util.logging for the given class.
 
Method Summary
 void debug(java.lang.Object obj)
           
 void error(java.lang.Object obj)
           
 void error(java.lang.Object obj, java.lang.Throwable ex)
           
 void info(java.lang.Object obj)
           
 void warn(java.lang.Object obj)
           
 void warn(java.lang.Object obj, java.lang.Throwable ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLoggingLog

public JavaLoggingLog(java.lang.Class clazz)
Creates a new JavaLoggingLog obtained from java.util.logging for the given class.

Parameters:
clazz - the class to log for.
Method Detail

debug

public void debug(java.lang.Object obj)
Specified by:
debug in interface Log

info

public void info(java.lang.Object obj)
Specified by:
info in interface Log

warn

public void warn(java.lang.Object obj)
Specified by:
warn in interface Log

warn

public void warn(java.lang.Object obj,
                 java.lang.Throwable ex)
Specified by:
warn in interface Log

error

public void error(java.lang.Object obj)
Specified by:
error in interface Log

error

public void error(java.lang.Object obj,
                  java.lang.Throwable ex)
Specified by:
error in interface Log

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.