Home | History | Annotate | Download | only in howto

Lines Matching full:console

34     # create console handler with a higher log level
159 text file while simultaneously logging errors or above to the console. To set
171 # create console handler with a higher log level
205 Let's say you want to log to console and file with different message formats and
207 and higher to file, and those messages at level INFO and higher to the console.
208 Let's also assume that the file should contain timestamps, but the console
220 console = logging.StreamHandler()
221 console.setLevel(logging.INFO)
222 # set a format which is simpler for console use
225 console.setFormatter(formatter)
227 logging.getLogger('').addHandler(console)
243 When you run this, on the console you will see ::
261 This example uses console and file handlers, but you can use any number and
443 printed on the console
734 'console':{
757 'handlers': ['console', 'mail_admins'],
1082 'console': {
1089 'handlers': ['console']
1500 writing to ``sys.stdout``. Thus, message #5 appears twice on the console (once