D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib64
/
python2.7
/
site-packages
/
ldap
/
Filename :
logger.py
back
Copy
# -*- coding: utf-8 -*- """ Helper class for using logging as trace file object """ import logging class logging_file_class: def __init__(self,logging_level): self._logging_level = logging_level def write(self,msg): logging.log(self._logging_level,msg[:-1]) logging_file_obj = logging_file_class(logging.DEBUG)