Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.base
Class Log

java.lang.Object
  extended by com.jivesoftware.base.Log

public class Log
extends Object

Simple wrapper to the JDK logger.


Method Summary
static void debug(String s)
           
static void debug(String s, Throwable throwable)
           
static void debug(Throwable throwable)
           
static void error(String s)
           
static void error(String s, Throwable throwable)
           
static void error(Throwable throwable)
           
static void fine(String s, Throwable throwable)
           
static void fine(Throwable throwable)
           
static void flushLogs()
          This method is used to shutdown the Log class.
static String getLogDirectory()
          Returns the directory that log files exist in.
static void info(String s)
           
static void info(String s, Throwable throwable)
           
static void info(Throwable throwable)
           
static boolean isDebugEnabled()
           
static boolean isErrorEnabled()
           
static boolean isInfoEnabled()
           
static boolean isWarnEnabled()
           
static void markDebugLogFile(User user)
           
static void markErrorLogFile(User user)
           
static void markInfoLogFile(User user)
           
static void markWarnLogFile(User user)
           
static void rotateDebugLogFile()
           
static void rotateErrorLogFile()
           
static void rotateInfoLogFile()
           
static void rotateWarnLogFile()
           
static void setDebugEnabled(boolean enabled)
           
static void shutdown()
          This method is used for testing, and forces the log to flush and close.
static void warn(String s)
           
static void warn(String s, Throwable throwable)
           
static void warn(Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

flushLogs

public static void flushLogs()
This method is used to shutdown the Log class.


shutdown

public static void shutdown()
This method is used for testing, and forces the log to flush and close.


isDebugEnabled

public static boolean isDebugEnabled()

isInfoEnabled

public static boolean isInfoEnabled()

isWarnEnabled

public static boolean isWarnEnabled()

isErrorEnabled

public static boolean isErrorEnabled()

setDebugEnabled

public static void setDebugEnabled(boolean enabled)

debug

public static void debug(String s)

debug

public static void debug(Throwable throwable)

debug

public static void debug(String s,
                         Throwable throwable)

fine

public static void fine(Throwable throwable)

fine

public static void fine(String s,
                        Throwable throwable)

markDebugLogFile

public static void markDebugLogFile(User user)

markInfoLogFile

public static void markInfoLogFile(User user)

markWarnLogFile

public static void markWarnLogFile(User user)

markErrorLogFile

public static void markErrorLogFile(User user)

rotateDebugLogFile

public static void rotateDebugLogFile()

rotateInfoLogFile

public static void rotateInfoLogFile()

rotateWarnLogFile

public static void rotateWarnLogFile()

rotateErrorLogFile

public static void rotateErrorLogFile()

info

public static void info(String s)

info

public static void info(Throwable throwable)

info

public static void info(String s,
                        Throwable throwable)

warn

public static void warn(String s)

warn

public static void warn(Throwable throwable)

warn

public static void warn(String s,
                        Throwable throwable)

error

public static void error(String s)

error

public static void error(Throwable throwable)

error

public static void error(String s,
                         Throwable throwable)

getLogDirectory

public static String getLogDirectory()
Returns the directory that log files exist in. The directory name will have a File.separator as the last character in the string.

Returns:
the directory that log files exist in.

Clearspace Project Page

Copyright © 1999-2007 Jive Software.