mirror of
				https://github.com/vlang/v.git
				synced 2023-08-10 21:13:21 +03:00 
			
		
		
		
	Add a logger interface to the std modules
This commit is contained in:
		
				
					committed by
					
						
						Alexander Medvednikov
					
				
			
			
				
	
			
			
			
						parent
						
							d072178cef
						
					
				
				
					commit
					06b8bd9382
				
			@@ -7,11 +7,19 @@ import term
 | 
			
		||||
const (
 | 
			
		||||
    FATAL = 1
 | 
			
		||||
    ERROR = 2 
 | 
			
		||||
    WARN = 3
 | 
			
		||||
    INFO = 4
 | 
			
		||||
    DEBUG =5
 | 
			
		||||
    WARN  = 3
 | 
			
		||||
    INFO  = 4
 | 
			
		||||
    DEBUG = 5
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
interface Logger {
 | 
			
		||||
    fatal(s string)
 | 
			
		||||
    error(s string)
 | 
			
		||||
    warn(s string)
 | 
			
		||||
    info(s string)
 | 
			
		||||
    debug(s string)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct Log{
 | 
			
		||||
mut:
 | 
			
		||||
    level int
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user