Updated pocketmine/log and pocketmine/log-pthreads (BC breaks included)

AttachableLogger deals with Closures now instead of LoggerAttachment objects
ThreadedLoggerAttachment no longer implements LoggerAttachment
This commit is contained in:
Dylan K. Taylor
2021-11-01 22:22:22 +00:00
parent f6cb4f9597
commit f2912fcdd8
4 changed files with 34 additions and 22 deletions

View File

@@ -210,7 +210,7 @@ class MainLogger extends \AttachableThreadedLogger implements \BufferedLogger{
$this->logWriterThread->write($time->format("Y-m-d") . " " . TextFormat::clean($message) . PHP_EOL);
foreach($this->attachments as $attachment){
$attachment->call($level, $message);
$attachment->log($level, $message);
}
});
}