# LogWriter
Inherits from: RHObject :: FileWriter
# Class Methods
# Inherited methods
Destructor ErrorAssoc NewSubclass OKAssoc
# New
function Dynamic New(String logFile, String mode=File.AppendMode)
Create a new LogWriter. Once a file is opened it can be written to with the .write()
method. The file is automatically
closed once the frame is deallocated.
# Overrides:
New
in class FileWriter
# Parameters
filePath
- The path to the file relative to the logs/ directory. Any intermediate directories will be automatically created.mode
- The mode for writing. Either File.AppendMode File.WriteMode.
# Returns
A frame if the file could be opened for writing. Undefined otherwise.
# Instance Methods
# Property Methods
Property methods can be accessed with the valueForKey
method.
classidentifier classname clone elapsedtime errorassoc filepath hash identityhashcode iterator loglevel methods okassoc propertymethods reset serialize string
# Inherited methods
assert cacheMethod cacheValueForKey callSuper checkError class classIdentifier className clone deserialize dict elapsedTime endTrans filePath flush hash identityHashCode isAccessorMethod isCached isInstanceOf isProperty isPropertyMethod iterator methods pluck prepareForReuse propertyMethods removeFromCache reset resetCache resetSubclass respondsTo serialize setCacheValueForKey setValueForKey setValueForKeyPath setValues startTrans string super valueForKey valueForKeyPath write
# close
function Void Close()
# Overrides:
close
in class FileWriter
# debug
function Frame debug(Dynamic t1=Undefined, Dynamic t2=Undefined, Dynamic t3=Undefined, Dynamic t4=Undefined, Dynamic t5=Undefined)
# error
function Frame error(Dynamic t1=Undefined, Dynamic t2=Undefined, Dynamic t3=Undefined, Dynamic t4=Undefined, Dynamic t5=Undefined)
# fatal
function Frame fatal(Dynamic t1=Undefined, Dynamic t2=Undefined, Dynamic t3=Undefined, Dynamic t4=Undefined, Dynamic t5=Undefined)
# info
function Frame info(Dynamic t1=Undefined, Dynamic t2=Undefined, Dynamic t3=Undefined, Dynamic t4=Undefined, Dynamic t5=Undefined)
# logLevel
function Dynamic logLevel()
# setLogLevel
function Frame setLogLevel(Dynamic LogLevel)
# trace
function Frame trace(Dynamic t1=Undefined, Dynamic t2=Undefined, Dynamic t3=Undefined, Dynamic t4=Undefined, Dynamic t5=Undefined)
# warn
function Frame warn(Dynamic t1=Undefined, Dynamic t2=Undefined, Dynamic t3=Undefined, Dynamic t4=Undefined, Dynamic t5=Undefined)