mirror of
https://github.com/zhamao-robot/zhamao-logger.git
synced 2026-07-02 22:35:41 +08:00
Compare commits
2 Commits
master
...
fix/recurs
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4367bef61 | ||
|
|
8a72831c5c |
@@ -10,7 +10,7 @@ use Psr\Log\LogLevel;
|
||||
|
||||
class ConsoleLogger extends AbstractLogger
|
||||
{
|
||||
public const VERSION = '1.1.9';
|
||||
public const VERSION = '1.1.7';
|
||||
|
||||
/**
|
||||
* 日志输出格式
|
||||
@@ -258,14 +258,14 @@ class ConsoleLogger extends AbstractLogger
|
||||
try {
|
||||
// use stream
|
||||
if ($this->stream) {
|
||||
fwrite($this->stream, $output);
|
||||
fflush($this->stream);
|
||||
@fwrite($this->stream, $output);
|
||||
@fflush($this->stream);
|
||||
} else {
|
||||
if ($level <= 4 && $this->use_stderr) {
|
||||
fwrite(STDERR, $output);
|
||||
@fwrite(STDERR, $output);
|
||||
} else {
|
||||
// use plain text output
|
||||
echo $output;
|
||||
@echo $output;
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user