mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Issue #11331: fixed documentation in logging cookbook.
This commit is contained in:
		
							parent
							
								
									10914b7473
								
							
						
					
					
						commit
						dcc9513c67
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -630,8 +630,6 @@ script::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if __name__ == '__main__':
 | 
					    if __name__ == '__main__':
 | 
				
			||||||
       levels = (logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL)
 | 
					       levels = (logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL)
 | 
				
			||||||
       a1 = logging.LoggerAdapter(logging.getLogger('a.b.c'),
 | 
					 | 
				
			||||||
                                  { 'ip' : '123.231.231.123', 'user' : 'sheila' })
 | 
					 | 
				
			||||||
       logging.basicConfig(level=logging.DEBUG,
 | 
					       logging.basicConfig(level=logging.DEBUG,
 | 
				
			||||||
                           format='%(asctime)-15s %(name)-5s %(levelname)-8s IP: %(ip)-15s User: %(user)-8s %(message)s')
 | 
					                           format='%(asctime)-15s %(name)-5s %(levelname)-8s IP: %(ip)-15s User: %(user)-8s %(message)s')
 | 
				
			||||||
       a1 = logging.getLogger('a.b.c')
 | 
					       a1 = logging.getLogger('a.b.c')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue