芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/cms.mgaplay.com.br/lib/Service/LogServiceInterface.php
. */ namespace Xibo\Service; use Monolog\Logger; use Psr\Log\LoggerInterface; /** * Interface LogServiceInterface * @package Xibo\Service */ interface LogServiceInterface { /** * Log constructor. * @param Logger $logger * @param string $mode */ public function __construct($logger, $mode = 'production'); /** * Get the underlying logger interface * useful for custom code and modules which may not want to know about the full Xibo LogServiceInterface * @return \Psr\Log\LoggerInterface */ public function getLoggerInterface(): LoggerInterface; /** * Set the user Id * @param int $userId */ public function setUserId($userId); /** * Set the User IP Address * @param $ip * @return mixed */ public function setIpAddress($ip); /** * @param $mode * @return mixed */ public function setMode($mode); /** * Audit Log * @param string $entity * @param int $entityId * @param string $message * @param string|object|array $object */ public function audit($entity, $entityId, $message, $object); /** * @param $sql * @param $params * @return mixed */ public function sql($sql, $params); /** * @param string * @return mixed */ public function debug($object); /** * @param ...$object * @return mixed */ public function notice($object); /** * @param ...$object * @return mixed */ public function info($object); /** * @param ...$object * @return mixed */ public function warning($object); /** * @param ...$object * @return mixed */ public function error($object); /** * @param ...$object * @return mixed */ public function critical($object); /** * @param ...$object * @return mixed */ public function alert($object); /** * @param ...$object * @return mixed */ public function emergency($object); /** * Resolve the log level * @param string $level * @return int */ public static function resolveLogLevel($level); /** * Set the log level on all handlers * @param $level */ public function setLevel($level); }