new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
<?php namespace ZN\Helpers;
|
||||
/**
|
||||
* ZN PHP Web Framework
|
||||
*
|
||||
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
||||
*
|
||||
* @package ZN
|
||||
* @license MIT [http://opensource.org/licenses/MIT]
|
||||
* @author Ozan UYKUN [ozan@znframework.com]
|
||||
*/
|
||||
|
||||
interface LoggerInterface
|
||||
{
|
||||
/**
|
||||
* Notice log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function notice(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Emergency log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function emergency(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Alert log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function alert(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Error log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function error(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Warning log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function warning(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Critical log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function critical(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Info log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function info(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Debug log
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function debug(string $message, ?string $time = NULL);
|
||||
|
||||
/**
|
||||
* Report log
|
||||
*
|
||||
* @param string $subject
|
||||
* @param string $message
|
||||
* @param string $destination
|
||||
* @param string $time
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function report(string $subject, string $message, ?string $destination = NULL, ?string $time = NULL) : bool;
|
||||
}
|
||||
Reference in New Issue
Block a user