Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Classes | Static Public Member Functions | Static Public Attributes | List of all members
CASUAL.Log Class Reference

Classes

enum  LogLevel
 

Static Public Member Functions

static File getLogFile ()
 
static void setLogFile (File aFile)
 
static String getPreProgress ()
 
static void setUI (iCASUALUI ui)
 
static void level0Error (String data)
 
static void level2Information (String data)
 
static void Level1Interaction (String data)
 
static void level3Verbose (String data)
 
static void level4Debug (String data)
 
static void insertChars (String data)
 
static void writeToLogFile (String data)
 
static void progress (String data)
 
static void LiveUpdate (String data)
 
static void beginLine ()
 
static void errorHandler (Exception e)
 

Static Public Attributes

static LogLevel[] outputGUIVerbosity = {LogLevel.ERROR, LogLevel.INFORMATION}
 
static LogLevel[] outputLogVerbosity = {LogLevel.ERROR, LogLevel.INTERACTION, LogLevel.INFORMATION, LogLevel.VERBOSE, LogLevel.DEBUG}
 
static LogLevel[] consoleLogVerbosity ={LogLevel.ERROR, LogLevel.INTERACTION, LogLevel.INFORMATION, LogLevel.VERBOSE, LogLevel.DEBUG}
 
static PrintStream out = new PrintStream(System.out)
 

Detailed Description

Logs stuff and things

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Member Function Documentation

static void CASUAL.Log.beginLine ( )
static

begins a new line

static void CASUAL.Log.errorHandler ( Exception  e)
static
Parameters
eis any Throwable.
static File CASUAL.Log.getLogFile ( )
static
Returns
the logFile
static void CASUAL.Log.level0Error ( String  data)
static

level 0 is used for errors.. basically silent. Use level 1 for for most tasks

Parameters
datais data to be written to log
static void CASUAL.Log.Level1Interaction ( String  data)
static

level 1 is used for interactive tasks.

Parameters
datais data to be written to log
static void CASUAL.Log.level2Information ( String  data)
static

level 2 if for debugging data

Parameters
datais data to be written to log
static void CASUAL.Log.level3Verbose ( String  data)
static

level 3 is for verbose data

Parameters
datais data to be written to log
static void CASUAL.Log.level4Debug ( String  data)
static
Parameters
datais data to be written to log
static void CASUAL.Log.LiveUpdate ( String  data)
static
Parameters
datadata to be written to screen in real time
static void CASUAL.Log.progress ( String  data)
static
Parameters
datadata to be written to progress on screen
static void CASUAL.Log.setLogFile ( File  aFile)
static
Parameters
aFilethe logFile to set
static void CASUAL.Log.writeToLogFile ( String  data)
static
Parameters
datato be written to log logFile

Member Data Documentation

LogLevel [] CASUAL.Log.consoleLogVerbosity ={LogLevel.ERROR, LogLevel.INTERACTION, LogLevel.INFORMATION, LogLevel.VERBOSE, LogLevel.DEBUG}
static

increase or decrease the terminal output. 0 is error only, 4 is debug

PrintStream CASUAL.Log.out = new PrintStream(System.out)
static

output device

LogLevel [] CASUAL.Log.outputGUIVerbosity = {LogLevel.ERROR, LogLevel.INFORMATION}
static

increase or decrease the logging level. 0 is error only, 4 is debug

LogLevel [] CASUAL.Log.outputLogVerbosity = {LogLevel.ERROR, LogLevel.INTERACTION, LogLevel.INFORMATION, LogLevel.VERBOSE, LogLevel.DEBUG}
static

increase or decrease the log logFile output. 0 is error only, 4 is debug


The documentation for this class was generated from the following file: