Skip to content

Commit

Permalink
修复日志名称多"-"
Browse files Browse the repository at this point in the history
  • Loading branch information
anoxia committed Dec 23, 2018
1 parent 11e08f2 commit d5721df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct($basePath)
public function log($level, $message, array $context = array())
{
$today = date('Y-m-d');
$file = "/{$this->_basePath}/{$today}-{$this->_logExt}";
$file = "/{$this->_basePath}/{$today}{$this->_logExt}";

file_put_contents($file, json_encode($context, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
}
Expand Down

0 comments on commit d5721df

Please sign in to comment.