Added ThreadedLoggerAttachments

This commit is contained in:
Shoghi Cervantes
2014-07-01 20:50:51 +02:00
parent f7c23e89f0
commit 75d2409a7c
4 changed files with 137 additions and 0 deletions

View File

@ -145,6 +145,11 @@ class MainLogger extends \ThreadedLogger{
}else{
echo $message;
}
if($this->attachment instanceof \ThreadedLoggerAttachment){
$this->attachment->call($message);
}
$this->logStream .= date("Y-m-d", $now) . " " . $cleanMessage;
}