98 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			98 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php namespace Illuminate\Contracts\Logging;
 | |
| 
 | |
| interface Log {
 | |
| 
 | |
| 	/**
 | |
| 	 * Log an alert message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function alert($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log a critical message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function critical($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log an error message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function error($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log a warning message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function warning($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log a notice to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function notice($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log an informational message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function info($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log a debug message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function debug($message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Log a message to the logs.
 | |
| 	 *
 | |
| 	 * @param  string  $level
 | |
| 	 * @param  string  $message
 | |
| 	 * @param  array  $context
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function log($level, $message, array $context = array());
 | |
| 
 | |
| 	/**
 | |
| 	 * Register a file log handler.
 | |
| 	 *
 | |
| 	 * @param  string  $path
 | |
| 	 * @param  string  $level
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function useFiles($path, $level = 'debug');
 | |
| 
 | |
| 	/**
 | |
| 	 * Register a daily file log handler.
 | |
| 	 *
 | |
| 	 * @param  string  $path
 | |
| 	 * @param  int     $days
 | |
| 	 * @param  string  $level
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function useDailyFiles($path, $days = 0, $level = 'debug');
 | |
| 
 | |
| }
 |