Horje
python logging to syslog linux Code Example
python logging to syslog linux
import logging
import logging.handlers

my_logger = logging.getLogger('MyLogger')
my_logger.setLevel(logging.DEBUG)

handler = logging.handlers.SysLogHandler(address = '/dev/log')

my_logger.addHandler(handler)

my_logger.debug('this is debug')
my_logger.critical('this is critical')




Python

Related
python bufferedreader Code Example python bufferedreader Code Example
str to datetime time Code Example str to datetime time Code Example
isolationforest estimators Code Example isolationforest estimators Code Example
python data type conversion Code Example python data type conversion Code Example
how to see if a number is prime in python Code Example how to see if a number is prime in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7