railo.commons.io.log
Class LogUtil

java.lang.Object
  extended by railo.commons.io.log.LogUtil

public final class LogUtil
extends Object

Helper class for the logs


Constructor Summary
LogUtil()
           
 
Method Summary
static String getHeader()
          return log header line
static String getLine(int type, String application, String message)
          return log line from given data
static int toIntType(String attribute, int defaultValue)
          transalte a string log type to a int represenatation
static String toMessage(Exception e)
           
static String toStringType(int type, String defaultValue)
          translate int type to String type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtil

public LogUtil()
Method Detail

getHeader

public static String getHeader()
return log header line

Returns:
header

getLine

public static String getLine(int type,
                             String application,
                             String message)
return log line from given data

Parameters:
type -
application -
message -
Returns:
line

toStringType

public static String toStringType(int type,
                                  String defaultValue)
translate int type to String type

Parameters:
type -
defaultValue -
Returns:
string type

toIntType

public static int toIntType(String attribute,
                            int defaultValue)
transalte a string log type to a int represenatation

Parameters:
attribute -
defaultValue -
Returns:
int lelog lev

toMessage

public static String toMessage(Exception e)


Copyright © 2012 Railo