org.sonatype.guice.bean.reflect
Class Logs

java.lang.Object
  extended by org.sonatype.guice.bean.reflect.Logs

public final class Logs
extends java.lang.Object

Utility methods for dealing with internal debug and warning messages.


Method Summary
static void debug(java.lang.Class<?> clazz, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
          Formats and logs the given debug message under the given context class
static void warn(java.lang.Class<?> clazz, java.lang.String message, java.lang.Throwable cause)
          Logs the given warning message and cause under the given context class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

debug

public static void debug(java.lang.Class<?> clazz,
                         java.lang.String format,
                         java.lang.Object arg1,
                         java.lang.Object arg2)
Formats and logs the given debug message under the given context class

Parameters:
clazz - The context class
format - The debug message format
arg1 - First object to format
arg2 - Second object to format

warn

public static void warn(java.lang.Class<?> clazz,
                        java.lang.String message,
                        java.lang.Throwable cause)
Logs the given warning message and cause under the given context class

Parameters:
clazz - The context class
message - The warning message
cause - The cause


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.