Module Import alias Import alias Import alias Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index NameLoad Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Print Call AttributeLoad Str attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Print Call AttributeLoad Str attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Print Call AttributeLoad Str attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Print Call AttributeLoad Str attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Print Call AttributeLoad Str attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Print Call AttributeLoad Str attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad Print Call AttributeLoad Str attr keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Num Num body Expr Str If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str orelse If Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If NameLoad body Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Return Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad decorator_list
N/A N/A inspect N/A logging N/A logging.handlers N/A os N/A NOTSET N/A logging NOTSET N/A VERBOSE 5 N/A DEBUG N/A logging DEBUG N/A INFO N/A logging INFO N/A WARNING N/A logging WARNING N/A WARN WARNING N/A ERROR N/A logging ERROR N/A CRITICAL N/A logging CRITICAL N/A FATAL CRITICAL N/A LEVEL_NAMES N/A CRITICAL ERROR WARNING INFO DEBUG VERBOSE NOTSET CRITICAL ERROR WARN WARNING INFO DEBUG VERBOSE NOTSET CRITICAL ERROR WARNING INFO DEBUG VERBOSE NOTSET CRITICAL ERROR WARNING WARNING INFO DEBUG VERBOSE NOTSET N/A DEFAULT_PROMPTS N/A VERBOSE DEBUG INFO WARNING ERROR CRITICAL N/A N/A {level}:  format level N/A LEVEL_NAMES N/A VERBOSE N/A N/A {level}:  format level N/A LEVEL_NAMES N/A DEBUG N/A N/A {level}:  format level N/A LEVEL_NAMES N/A INFO N/A N/A {level}:  format level N/A LEVEL_NAMES N/A WARNING N/A N/A {level}:  format level N/A LEVEL_NAMES N/A ERROR N/A N/A {level}:  format level N/A LEVEL_NAMES N/A CRITICAL N/A ELEVATED_PATH /var/log/management/ N/A LOCAL_PATH ~/Library/Logs/Management/ Logger N/A N/A logging Logger N/A N/A 
    This class replaces the regular logging methods (info, error, etc.) with
    methods that can both output information to the console as well as write to
    the logs.
     __init__ N/A N/A self name level print_default log_default N/A INFO True True N/A N/A 
        Set up the logger. Generally this will be created from some command
        line arguments.
        
        :param name: the name of the logger
        :type  name: str
        :param level: the level at which to log output
        :type  level: int
         N/A N/A N/A N/A super Logger self __init__ name name level level N/A N/A self level_names N/A N/A LEVEL_NAMES copy N/A N/A self prompts N/A N/A DEFAULT_PROMPTS copy N/A N/A self print_default print_default N/A N/A self log_default log_default N/A add_level_name N/A N/A self level level_name N/A N/A N/A 
        Allows for custom level names to be used. This is used in logging
        output.
        
        :param level: The numeric value of the level.
        :param level_name: The name for that level of logging.
         N/A N/A N/A self level_names N/A level level_name N/A N/A N/A self level_names N/A level_name level N/A N/A N/A logging addLevelName level level_name N/A set_prompt N/A N/A self level prompt N/A N/A N/A 
        Set a new default prompt. Useful for outputting custom information with
        custom logging levels.
        
        :param level: The level for the prompt to display at.
        :param prompt: The prompt to display.
         N/A N/A N/A self prompts N/A level prompt N/A verbose N/A N/A self message print_out log N/A None None N/A N/A 
        Log 'message' as verbose output.
        
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level VERBOSE N/A N/A N/A N/A {prompt}{message} format prompt N/A N/A self prompts N/A VERBOSE message message N/A log N/A N/A N/A N/A N/A super Logger self debug message N/A debug N/A N/A self message print_out log N/A None None N/A N/A 
        Log 'message' as debugging output.
        
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level DEBUG N/A N/A N/A N/A {prompt}{message} format prompt N/A N/A self prompts N/A DEBUG message message N/A log N/A N/A N/A N/A N/A super Logger self debug message N/A info N/A N/A self message print_out log N/A None None N/A N/A 
        Log 'message' as general information.
        
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level INFO N/A N/A N/A N/A {prompt}{message} format prompt N/A N/A self prompts N/A INFO message message N/A log N/A N/A N/A N/A N/A super Logger self info message N/A warning N/A N/A self message print_out log N/A None None N/A N/A 
        Log 'message' as a warning (not enough to halt execution, but enough to
        be notable).
        
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level WARNING N/A N/A N/A N/A {prompt}{message} format prompt N/A N/A self prompts N/A WARNING message message N/A log N/A N/A N/A N/A N/A super Logger self warning message N/A N/A warn warning error N/A N/A self message print_out log N/A None None N/A N/A 
        Log 'message' as an error.
        
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level ERROR N/A N/A N/A N/A {prompt}{message} format prompt N/A N/A self prompts N/A ERROR message message N/A log N/A N/A N/A N/A N/A super Logger self error message N/A critical N/A N/A self message print_out log N/A None None N/A N/A 
        Log 'message' as a critical failure. This should probably halt
        execution more often than not.
        
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level CRITICAL N/A N/A N/A N/A {prompt}{message} format prompt N/A N/A self prompts N/A CRITICAL message message N/A log N/A N/A N/A N/A N/A super Logger self critical message N/A N/A fatal critical log N/A N/A self level message print_out log N/A None None N/A N/A 
        Log 'message' with a custom logging level.
        
        :param level: The verbosity level to log at.
        :param message: Information to display.
        :param print_out: Whether to print to stdout.
        :param log: Whether to commit this to the logger.
         N/A N/A print_out None N/A N/A print_out N/A self print_default N/A N/A log None N/A N/A log N/A self log_default N/A N/A print_out N/A N/A self level level N/A N/A prompt N/A N/A N/A self prompts get level N/A N/A Level {}:  format level N/A N/A N/A {prompt}{message} format prompt prompt message message N/A log N/A N/A N/A N/A N/A super Logger self log level message N/A N/A FileLogger N/A Logger N/A N/A 
    A rotating file logger. This will write to a file up until the file contains
    10MB of data. At that point the file will get ".1" appended to its name, and
    a new file will be created in its place. This will keep up to five backup
    files aside from the main file to which output is logged.
    
    The default destination is:
        ELEVATED_PATH/<name>.log
    But if the current user does not have write permissions within that
    directory, instead the destination will be:
        LOCAL_PATH/<name>.log
    
    The default logging severity level is INFO.
     __init__ N/A N/A self name level path print_default log_default log_size backup_count N/A None INFO None True True 10485760 5 N/A N/A 
        Create the rotating file logger. By default, the name will be set based
        on the inspection stack; the level will be set to INFO; and the path
        will be set to the class defaults.
        
        :param name: The name of the logger (e.g. "myprogram").
        :param level: The logging level for output.
        :param path: The directory to put the log file inside.
        :param print_default: Whether to default to outputting logging
                              information to stdout.
        :Param log_default: Whether to default to commiting logging information
                            to the log file.
         N/A path N/A N/A N/A N/A N/A path endswith / N/A N/A path / N/A N/A N/A N/A os access N/A N/A N/A os path dirname N/A ELEVATED_PATH N/A -1 N/A os W_OK N/A N/A path ELEVATED_PATH N/A N/A path N/A N/A N/A os path expanduser LOCAL_PATH N/A N/A name N/A N/A name N/A N/A N/A N/A inspect stack N/A 1 N/A 3 N/A destination N/A N/A N/A os path join path name N/A N/A N/A N/A destination endswith .log N/A N/A destination .log N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path dirname destination N/A N/A N/A N/A N/A N/A os makedirs N/A N/A N/A os path dirname destination N/A N/A N/A OSError N/A N/A N/A ValueError N/A N/A Invalid path specified: could not create'{}' format N/A str N/A N/A N/A os path dirname destination N/A N/A N/A N/A super FileLogger self __init__ name name level level print_default print_default log_default log_default N/A N/A self path path N/A formatter N/A N/A logging Formatter %(asctime)s %(levelname)s: %(message)s N/A handler N/A N/A N/A logging handlers RotatingFileHandler destination maxBytes log_size backupCount backup_count N/A N/A N/A handler setFormatter formatter N/A N/A N/A self addHandler handler N/A N/A StreamLogger N/A Logger N/A N/A 
    A simple console-output logger. This will not write to a file, but instead
    will output everything to the console.
    
    The default logging severity level is DEBUG.
     __init__ N/A N/A self name level print_default log_default N/A None DEBUG False True N/A N/A 
        Build the stream logger as specified. The default logging level is set
        at DEBUG.
        
        :param level: the level at which to cut off logging
        :type  level: int
         N/A N/A name N/A N/A name N/A N/A N/A N/A inspect stack N/A 1 N/A 3 N/A N/A N/A N/A super StreamLogger self __init__ name name level level print_default print_default log_default log_default N/A formatter N/A N/A logging Formatter %(asctime)s %(levelname)s: %(message)s N/A handler N/A N/A logging StreamHandler N/A N/A N/A handler setFormatter formatter N/A N/A N/A self addHandler handler N/A N/A get_logger N/A N/A name log level path N/A None False INFO None N/A N/A 
    Returns the appropriate logger depending on the passed-in arguments.
    
    This is particularly useful in conjunction with command-line arguments when
    you won't know for sure what kind of logger the program will need.
    
    :param name: The name of the file to log into.
    :param log: Whether to actually commit information to a file.
    :param level: The verbosity level. Only events logged at or above this level
                  will be displayed.
    :param path: The folder to put the log file into.
     N/A log N/A N/A N/A FileLogger name name level level path path N/A N/A N/A StreamLogger name name level level N/A file_logger N/A N/A name level path N/A None INFO None N/A N/A 
    Provides backwards compatibility with previous versions of Management Tools
    (i.e. version < 1.6.0).
    
    :param name: The name of the file to log into.
    :param level: The verbosity level. Only events logged at or above this level
                  will be displayed.
    :param path: The folder to put the log file into.
     N/A N/A FileLogger name name level level path path N/A stream_logger N/A N/A level N/A DEBUG N/A N/A 
    Provides backwards compatibility with previous versions of Management Tools
    (i.e. version < 1.6.0).
    
    :param level: The verbosity level. Only events logged at or above this level
                  will be displayed.
     N/A N/A StreamLogger name None level level N/A