com.friendshipsystems.fsshresourcemanager
Class FLogger

java.lang.Object
  extended by com.friendshipsystems.fsshresourcemanager.FLogger

public class FLogger
extends java.lang.Object

Logging class used by the FSshResourceManager. Utilizes slfj for logging. Replace the actual logger by exchanging the .jar files.

Author:
FRIENDSHIP SYSTEMS

Constructor Summary
FLogger()
           
 
Method Summary
static void debug(java.lang.String msg, java.lang.Class<? extends java.lang.Object> clazz)
          Logs an event with the level DEBUG
static java.lang.String debugStackTrace(java.lang.Exception ex, java.lang.Class<? extends java.lang.Object> clazz)
          Logs the stack trace of a Exception
static void error(java.lang.String msg, java.lang.Class<? extends java.lang.Object> clazz)
          Logs an event with the level ERROR
static void info(java.lang.String msg, java.lang.Class<? extends java.lang.Object> clazz)
          Logs an event with the level INFO
static void warn(java.lang.String msg, java.lang.Class<? extends java.lang.Object> clazz)
          Logs an event with the level WARN
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FLogger

public FLogger()
Method Detail

info

public static void info(java.lang.String msg,
                        java.lang.Class<? extends java.lang.Object> clazz)
Logs an event with the level INFO

Parameters:
msg - The message to display
clazz - The classname that caused the log message

warn

public static void warn(java.lang.String msg,
                        java.lang.Class<? extends java.lang.Object> clazz)
Logs an event with the level WARN

Parameters:
msg - The message to display
clazz - The classname that caused the log message

error

public static void error(java.lang.String msg,
                         java.lang.Class<? extends java.lang.Object> clazz)
Logs an event with the level ERROR

Parameters:
msg - The message to display
clazz - The classname that caused the log message

debug

public static void debug(java.lang.String msg,
                         java.lang.Class<? extends java.lang.Object> clazz)
Logs an event with the level DEBUG

Parameters:
msg - The message to display
clazz - The classname that caused the log message

debugStackTrace

public static java.lang.String debugStackTrace(java.lang.Exception ex,
                                               java.lang.Class<? extends java.lang.Object> clazz)
Logs the stack trace of a Exception

Parameters:
msg - The message to display
clazz - The classname that caused the log message