mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-31 03:14:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			478 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			478 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| // {{{ICINGA_LICENSE_HEADER}}}
 | |
| // {{{ICINGA_LICENSE_HEADER}}}
 | |
| 
 | |
| namespace Icinga\Logger;
 | |
| 
 | |
| use \Zend_Config;
 | |
| 
 | |
| /**
 | |
|  * Abstract class for writers that write messages to a log
 | |
|  */
 | |
| abstract class LogWriter
 | |
| {
 | |
|     /**
 | |
|      * Create a new log writer initialized with the given configuration
 | |
|      */
 | |
|     abstract public function __construct(Zend_Config $config);
 | |
| 
 | |
|     /**
 | |
|      * Log a message with the given severity
 | |
|      */
 | |
|     abstract public function log($severity, $message);
 | |
| }
 |