Module Expr Str Import alias Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Str NameLoad Str Str NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If BoolOpOr CompareGt AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpOr CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareNotIn AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Print BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareNotIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Break If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Print BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Str attr TupleLoad AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list
N/A N/A 
    Example:
    import eulogger
    self.logger = eulogger.Eulogger(name='euca')
    self.log = self.logger.log
    
    self.log.debug("This is a debug message")
    self.log.critical("this is a critical message")
 N/A os N/A sys N/A logging N/A time Eulogger N/A object N/A __init__ N/A N/A self parent_logger_name identifier stdout_level stdout_format logfile logfile_level make_log_file_global use_global_log_files file_format clear_file N/A eutester eulogger debug None debug True True None False N/A N/A 
        This class basically sets up a child debugger for testing purposes.
        It allows the user to set up a new logger object and pass different logging formats and levels so different
        objects and modules can log with unique identifiers and logging levels.


        :param parent_logger_name: Name of root/parent logger
        :param identifier: identifier used for log formatting and child logger name
        :param stdout_level: log level (see 'logging' class) for std out handler under this child logger
        :param stdout_format: logging format used by this child logger's stdout handler
        :param logfile: file path to use for this child logger's logging file handler
        :param logfile_level: log level (see 'logging' class) for file handler under this child logger
        :param file_format: logging formate used by this child logger's file handler
        :param clear_file: will attempt to remove 'logfile' before creating handler. Will not remove parent's files.
        :param make_log_file_global: boolean, will add this logfile to parent so other child loggers create afterward
                                     will attempt to create a handler that writes to this file as well.
        :param use_global_log_files: boolean, will query the parent logger for any file handlers and will attemp to
                                     create a handler for this child logger using the same file

        #Debug for init...
        print ( "-----------------------------------------------"                 + "
parent_logger_name:" + str(parent_logger_name)                 + "
eulogger init:"                 + "
identifier:" + str(identifier)                 + "
stdout_level:" + str(stdout_level)                 + "
stdout_format:" + str(stdout_format)                 + "
logfile:" + str(logfile)                 + "
logfile_level:" + str(logfile_level)                 + "
file_format:" + str(file_format)                 + "
clear_file:" + str(clear_file)                 + "
-----------------------------------------------" )
         N/A N/A self logfile N/A N/A N/A os path join logfile N/A N/A self clear_file clear_file N/A N/A self parent_logger_name parent_logger_name N/A N/A self identifier identifier N/A N/A self name N/A identifier N/A str N/A N/A time time N/A N/A self parent_logger N/A N/A logging getLogger N/A self parent_logger_name N/A N/A self log N/A N/A self getChild N/A self parent_logger N/A self name N/A N/A self file_info_list N/A N/A N/A self stdout_level N/A N/A N/A logging __dict__ get N/A N/A stdout_level upper N/A logging DEBUG N/A N/A self logfile_level N/A N/A N/A logging __dict__ get N/A N/A logfile_level upper N/A logging DEBUG N/A N/A N/A self stdout_level N/A self logfile_level N/A N/A N/A self logger_level N/A self stdout_level N/A N/A N/A self logger_level N/A self logfile_level N/A N/A N/A N/A N/A self log level N/A self logger_level N/A N/A N/A self log level 0 N/A N/A N/A N/A N/A self log setLevel N/A self logfile_level N/A N/A N/A N/A self parent_logger N/A self logger_level N/A N/A N/A self log level 0 N/A N/A N/A N/A N/A self parent_logger setLevel N/A self logfile_level N/A N/A self default_format N/A stdout_format N/A N/A logging Formatter N/A N/A [%(asctime)s] [ N/A self identifier ] [%(levelname)s]: %(message)s N/A N/A self file_format N/A file_format N/A self default_format N/A N/A self formatter2 N/A N/A logging Formatter N/A N/A [%(asctime)s] [ N/A self identifier ] [%(levelname)s] [%(filename)s:%(funcName)s():%(lineno)d]: %(message)s N/A N/A self formatter3 N/A N/A logging Formatter N/A N/A self identifier :%(funcName)s():%(lineno)d: %(message)s N/A N/A self formatter4 N/A N/A logging Formatter %(message)s N/A N/A self stdout_handler N/A N/A logging StreamHandler N/A sys stdout N/A N/A N/A N/A self stdout_handler setFormatter N/A self default_format N/A N/A N/A N/A self stdout_handler setLevel N/A self stdout_level N/A N/A N/A N/A self stdout_handler addFilter N/A Allow_Logger_By_Name N/A N/A self log name N/A N/A N/A self stdout_handler N/A N/A self log handlers N/A N/A N/A N/A N/A self log addHandler N/A self stdout_handler N/A N/A N/A Not adding stdout handler for this eulogger: N/A str N/A self identifier N/A use_global_log_files N/A N/A N/A self file_info_list N/A N/A self get_parent_logger_files N/A N/A self logfile N/A N/A N/A N/A N/A self file_info_list append N/A File_Handler_Info N/A self logfile N/A self logfile_level N/A N/A self clear_file N/A N/A N/A N/A N/A N/A os remove N/A self logfile N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A Error while attempting to remove log file ' N/A self logfile ', err: N/A str e N/A make_log_file_global N/A N/A N/A N/A self add_muted_file_handler_to_parent_logger N/A self logfile N/A self logfile_level N/A fileinfo N/A self file_info_list N/A N/A file_hdlr N/A N/A logging FileHandler N/A fileinfo filepath N/A N/A N/A file_hdlr setFormatter N/A self file_format N/A N/A N/A file_hdlr setLevel N/A fileinfo level N/A N/A N/A file_hdlr addFilter N/A Allow_Logger_By_Name N/A N/A self log name N/A N/A file_hdlr N/A N/A self log handlers N/A N/A add True N/A h N/A N/A self log handlers N/A N/A N/A N/A N/A h stream name N/A N/A file_hdlr stream name N/A N/A add False N/A N/A N/A N/A self log debug N/A File already has log handler: N/A str N/A logfile filepath N/A N/A add N/A N/A N/A N/A N/A self log addHandler file_hdlr N/A N/A N/A Not adding logfile handler for this eulogger: N/A str N/A self identifier N/A add_muted_file_handler_to_parent_logger N/A N/A self filepath level N/A N/A N/A file_handler N/A N/A logging FileHandler filepath N/A N/A N/A file_handler setLevel level N/A N/A N/A file_handler addFilter N/A Mute_Filter N/A get_parent_logger_files N/A N/A self N/A N/A N/A files N/A N/A h N/A N/A self parent_logger handlers N/A N/A N/A isinstance h N/A logging FileHandler N/A N/A N/A N/A files append N/A File_Handler_Info N/A N/A h stream name N/A h level N/A files N/A getChild N/A N/A self logger suffix N/A N/A N/A 
        ## Add this for 2.6 support, this was implemented in 2.7...###
         N/A N/A hasattr logger getChild N/A N/A N/A N/A logger getChild suffix N/A N/A N/A N/A logger root logger N/A N/A suffix N/A N/A . join N/A N/A logger name suffix N/A N/A N/A N/A logger manager getLogger suffix N/A N/A File_Handler_Info N/A N/A __init__ N/A N/A self filepath level N/A N/A N/A N/A N/A filepath N/A level N/A N/A N/A Exception N/A N/A N/A File_Handler_Info None option not allowed, filepath: N/A str filepath ,level: N/A str level N/A N/A self filepath filepath N/A N/A self level level N/A N/A Allow_Logger_By_Name N/A N/A logging Filter N/A N/A 
    Only messages from this logger are allow through to prevent duplicates from other loggers of same level, etc..
     __init__ N/A N/A self name N/A N/A N/A N/A N/A N/A logging Filter __init__ self name N/A filter N/A N/A self record N/A N/A N/A N/A N/A record name N/A self name N/A N/A Mute_Filter N/A N/A logging Filter N/A filter N/A N/A self record N/A N/A N/A False N/A N/A