forked from leftypol/leftypol
LogDriver: move to subdirectory
This commit is contained in:
parent
3cb6fa3b5a
commit
c5ce9a8030
6 changed files with 6 additions and 6 deletions
22
inc/Data/Driver/Log/LogDriver.php
Normal file
22
inc/Data/Driver/Log/LogDriver.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
namespace Vichan\Data\Driver\Log;
|
||||
|
||||
defined('TINYBOARD') or exit;
|
||||
|
||||
|
||||
interface LogDriver {
|
||||
public const EMERG = \LOG_EMERG;
|
||||
public const ERROR = \LOG_ERR;
|
||||
public const WARNING = \LOG_WARNING;
|
||||
public const NOTICE = \LOG_NOTICE;
|
||||
public const INFO = \LOG_INFO;
|
||||
public const DEBUG = \LOG_DEBUG;
|
||||
|
||||
/**
|
||||
* Log a message if the level of relevancy is at least the minimum.
|
||||
*
|
||||
* @param int $level Message level. Use Log interface constants.
|
||||
* @param string $message The message to log.
|
||||
*/
|
||||
public function log(int $level, string $message): void;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue