2014-05-06 19:55:06 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-02-26 16:34:13 -05:00
|
|
|
declare(strict_types=1);
|
2014-05-06 19:55:06 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-05-06 19:55:06 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP;
|
|
|
|
|
|
|
|
|
|
/**
|
2024-09-18 18:37:06 -04:00
|
|
|
* Nextcloud logging levels.
|
|
|
|
|
* For historical reasons the logging levels are provided as interface constants.
|
2014-05-06 19:55:06 -04:00
|
|
|
*
|
2024-09-18 18:37:06 -04:00
|
|
|
* @since 7.0.0
|
|
|
|
|
* @since 20.0.0 deprecated logging methods in favor of \Psr\Log\LoggerInterface
|
|
|
|
|
* @since 31.0.0 removed deprecated logging methods - the interface is kept for Nextcloud log levels
|
2014-05-06 19:55:06 -04:00
|
|
|
*/
|
|
|
|
|
interface ILogger {
|
2018-04-25 09:22:28 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2020-10-05 09:12:57 -04:00
|
|
|
public const DEBUG = 0;
|
2018-04-25 09:22:28 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2020-10-05 09:12:57 -04:00
|
|
|
public const INFO = 1;
|
2018-04-25 09:22:28 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2020-10-05 09:12:57 -04:00
|
|
|
public const WARN = 2;
|
2018-04-25 09:22:28 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2020-10-05 09:12:57 -04:00
|
|
|
public const ERROR = 3;
|
2018-04-25 09:22:28 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2020-10-05 09:12:57 -04:00
|
|
|
public const FATAL = 4;
|
2014-05-06 19:55:06 -04:00
|
|
|
}
|