FileLogger FileLogger(
[int
$logDefinition = ''], String
1
)
|
|
Pass a PREFIX for your file.
If you do not pass a Prefix, your Log messsages might be shared with other Logger instances.
Parameters:
|
String |
1: |
the Prefix for the File. |
|
int |
$logDefinition: |
the LogLevel |
Closes the Log File handle.
Make sure to call this method before the Script ends!
Redefinition of:
- Logger::finalize()
- Clean up all resources that might be used by this Logger!
void initLogger(
$dir,
$filename
)
|
|
Parameters:
API Tags:
void log(
int
$mode, String
$msg
)
|
|
Log a message for a special mode, use this if you wanna use your own level/mode! Overwriten to Log all messages to the desired Log File.
Parameters:
|
int |
$mode: |
the Log Level |
|
String |
$msg: |
the Log Message |
Redefinition of:
- Logger::log()
- Log a message for a special mode, use this if you wanna use your own level/mode!