mirror of
				https://github.com/KevinMidboe/cloudflare-ddns.git
				synced 2025-10-29 17:40:17 +00:00 
			
		
		
		
	Added logger and replaced print statements
This commit is contained in:
		
							
								
								
									
										14
									
								
								logger.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								logger.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| import logging | ||||
| import sys | ||||
|  | ||||
| stdout_handler = logging.StreamHandler(stream=sys.stdout) | ||||
| handlers = [stdout_handler] | ||||
|  | ||||
| logging.basicConfig( | ||||
|     level=logging.DEBUG,  | ||||
|     format='[%(asctime)s] %(levelname)s\t %(message)s', | ||||
|     handlers=handlers | ||||
| ) | ||||
|  | ||||
| logger = logging.getLogger('cloudflare-ddns') | ||||
|  | ||||
		Reference in New Issue
	
	Block a user