mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Instead of instructing users to do static calls in to Unleash, she should instead be allwed to specify the log provider as an option to Unleash. This commit introduces the "getLogger" option, a function responsible for creating a logger.
		
			
				
	
	
		
			12 lines
		
	
	
		
			217 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			217 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
module.exports = function noLoggerProvider() {
 | 
						|
    // do something with the name
 | 
						|
    return {
 | 
						|
        debug: () => {},
 | 
						|
        info: () => {},
 | 
						|
        warn: () => {},
 | 
						|
        error: () => {},
 | 
						|
    };
 | 
						|
};
 |