@@ -32,20 +32,20 @@ |
||
32 | 32 | |
33 | 33 | class Errorlog implements IWriter { |
34 | 34 | |
35 | - /** @var string */ |
|
36 | - protected $tag; |
|
37 | - |
|
38 | - public function __construct(string $tag = 'nextcloud') { |
|
39 | - $this->tag = $tag; |
|
40 | - } |
|
41 | - |
|
42 | - /** |
|
43 | - * write a message in the log |
|
44 | - * @param string $app |
|
45 | - * @param string $message |
|
46 | - * @param int $level |
|
47 | - */ |
|
48 | - public function write(string $app, $message, int $level) { |
|
49 | - error_log('[' . $this->tag . ']['.$app.']['.$level.'] '.$message); |
|
50 | - } |
|
35 | + /** @var string */ |
|
36 | + protected $tag; |
|
37 | + |
|
38 | + public function __construct(string $tag = 'nextcloud') { |
|
39 | + $this->tag = $tag; |
|
40 | + } |
|
41 | + |
|
42 | + /** |
|
43 | + * write a message in the log |
|
44 | + * @param string $app |
|
45 | + * @param string $message |
|
46 | + * @param int $level |
|
47 | + */ |
|
48 | + public function write(string $app, $message, int $level) { |
|
49 | + error_log('[' . $this->tag . ']['.$app.']['.$level.'] '.$message); |
|
50 | + } |
|
51 | 51 | } |