org.tranche.logs
Class LogUtil

java.lang.Object
  extended by org.tranche.logs.LogUtil

public class LogUtil
extends java.lang.Object

Utility code to help send logs to the appropriate groups.

Author:
Jayson Falkner - jfalkner@umich.edu, Bryan Smith - bryanesmith@gmail.com

Constructor Summary
LogUtil()
           
 
Method Summary
static java.lang.String getEnvironmentDump()
           
static java.lang.String getServersDump()
           
static java.lang.String getThreadDump()
           
static java.lang.String getTroubleshootingInformation()
           
static java.io.File getTroubleshootingInformationFile()
           
static void logError(java.lang.Exception e)
          Helper method to log an exception to the Tranche error log.
static void logError(java.lang.Exception e, java.lang.String description, UserZipFile uzf)
           
static void logError(java.util.Set<java.lang.Exception> e)
           
static void logError(java.util.Set<java.lang.Exception> exceptions, java.lang.String description, UserZipFile uzf)
          Helper method to log an exception to the Tranche error log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtil

public LogUtil()
Method Detail

logError

public static void logError(java.lang.Exception e)
Helper method to log an exception to the Tranche error log.

Parameters:
e -

logError

public static void logError(java.util.Set<java.lang.Exception> e)
Parameters:
e -

logError

public static void logError(java.lang.Exception e,
                            java.lang.String description,
                            UserZipFile uzf)
Parameters:
e -
description -
uzf -

logError

public static void logError(java.util.Set<java.lang.Exception> exceptions,
                            java.lang.String description,
                            UserZipFile uzf)
Helper method to log an exception to the Tranche error log.

Parameters:
e -
description -
uzf -

getEnvironmentDump

public static final java.lang.String getEnvironmentDump()
Returns:

getServersDump

public static final java.lang.String getServersDump()
Returns:

getThreadDump

public static final java.lang.String getThreadDump()
Returns:

getTroubleshootingInformation

public static final java.lang.String getTroubleshootingInformation()
Returns:

getTroubleshootingInformationFile

public static final java.io.File getTroubleshootingInformationFile()
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license