Repository URL to install this package:
|
Version:
3.4.51 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
oslo_messaging
/
notify
/
logger.pyc
|
|---|
ó
čEYc @ sO d Z d d l Z d d l m Z d d l m Z d e j f d YZ d S( sQ
Driver for the Python logging package that sends log records as a notification.
iÿÿÿÿN( t cfg( t notifiert LoggingNotificationHandlerc B s5 e Z d Z e j Z d d d d d Z d Z RS( sÙ Handler for logging to the messaging notification system.
Each time the application logs a message using the :py:mod:`logging`
module, it will be sent as a notification. The severity used for the
notification will be the same as the one used for the log record.
This can be used into a Python logging configuration this way::
[handler_notifier]
class=oslo_messaging.LoggingNotificationHandler
level=ERROR
args=('rabbit:///')
c C sw t j t j | j | | | | r- | n d d t | t sN | d k rT | n | g | _ t j j | d S( Nt topics(
R t Notifiert get_notification_transportt CONFt Nonet
isinstancet listt loggingt Handlert __init__( t selft urlt publisher_idt drivert topict
serializer( ( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/logger.pyR . s !c C sÀ t | j | j j d } | s( d S| i d i | j d 6| j d 6| j d 6| j d 6| j d 6| j d 6| j
d 6| j d
6| j d 6| j
d 6| j d
6t | d d d 6 d S( sq Emit the log record to the messaging notification system.
:param record: A log record to emit.
Nt logrecordt namet levelnot levelnamet exc_infot pathnamet linenot msgt funcNamet threadt processNamet processt extra( t getattrR R t lowerR R R R R R t
getMessageR R R R ( R
t recordt method( ( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/logger.pyt emit7 s&