@@ -33,28 +33,28 @@ |
||
| 33 | 33 | * @since 14.0.0 |
| 34 | 34 | */ |
| 35 | 35 | interface ILogFactory { |
| 36 | - /** |
|
| 37 | - * @param string $type - one of: file, errorlog, syslog, systemd |
|
| 38 | - * @return IWriter |
|
| 39 | - * @since 14.0.0 |
|
| 40 | - */ |
|
| 41 | - public function get(string $type): IWriter; |
|
| 36 | + /** |
|
| 37 | + * @param string $type - one of: file, errorlog, syslog, systemd |
|
| 38 | + * @return IWriter |
|
| 39 | + * @since 14.0.0 |
|
| 40 | + */ |
|
| 41 | + public function get(string $type): IWriter; |
|
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * @param string $path |
|
| 45 | - * @return ILogger |
|
| 46 | - * @since 14.0.0 |
|
| 47 | - * @deprecated 22.0.0 Use \OCP\Log\ILogFactory::getCustomPsrLogger |
|
| 48 | - * @see \OCP\Log\ILogFactory::getCustomPsrLogger |
|
| 49 | - */ |
|
| 50 | - public function getCustomLogger(string $path): ILogger; |
|
| 43 | + /** |
|
| 44 | + * @param string $path |
|
| 45 | + * @return ILogger |
|
| 46 | + * @since 14.0.0 |
|
| 47 | + * @deprecated 22.0.0 Use \OCP\Log\ILogFactory::getCustomPsrLogger |
|
| 48 | + * @see \OCP\Log\ILogFactory::getCustomPsrLogger |
|
| 49 | + */ |
|
| 50 | + public function getCustomLogger(string $path): ILogger; |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @param string $path |
|
| 54 | - * @param string $type |
|
| 55 | - * @param string $tag |
|
| 56 | - * @return LoggerInterface |
|
| 57 | - * @since 22.0.0 - Parameters $type and $tag were added in 24.0.0 |
|
| 58 | - */ |
|
| 59 | - public function getCustomPsrLogger(string $path, string $type = 'file', string $tag = 'Nextcloud'): LoggerInterface; |
|
| 52 | + /** |
|
| 53 | + * @param string $path |
|
| 54 | + * @param string $type |
|
| 55 | + * @param string $tag |
|
| 56 | + * @return LoggerInterface |
|
| 57 | + * @since 22.0.0 - Parameters $type and $tag were added in 24.0.0 |
|
| 58 | + */ |
|
| 59 | + public function getCustomPsrLogger(string $path, string $type = 'file', string $tag = 'Nextcloud'): LoggerInterface; |
|
| 60 | 60 | } |