This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients lyapun, nikicat, vinay.sajip
Date 2012-11-09.20:21:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352492517.22.0.151292334231.issue16391@psf.upfronthosting.co.za>
In-reply-to
Content
You can already do this with Python 3.2 (and hence with later Python 3.x):

import logging.config

def my_handler(*args, **kwargs):
    h = logging.StreamHandler(*args, **kwargs)
    h.terminator = '!\n'
    return h

LOGGING = {
    'version': 1,
    'handlers': {
        'console': {
            '()': my_handler,
            'stream': 'ext://sys.stdout',
        }
    },
    'root': {
        'handlers': ['console'],
        'level': 'INFO',
    }
}

logging.config.dictConfig(LOGGING)

logging.info('Hello')
logging.info('world')

which will print

Hello!
world!
History
Date User Action Args
2012-11-09 20:21:57vinay.sajipsetrecipients: + vinay.sajip, lyapun, nikicat
2012-11-09 20:21:57vinay.sajipsetmessageid: <1352492517.22.0.151292334231.issue16391@psf.upfronthosting.co.za>
2012-11-09 20:21:57vinay.sajiplinkissue16391 messages
2012-11-09 20:21:56vinay.sajipcreate