Beispiel #1
0
 def __init__(self, base_path=None, default_filename=None, rm_path=False, no_base_path=None, **kwargs):
     self.defaults = kwargs
     if no_base_path and not default_filename:
         default_filename = no_base_path
     self.default_filename = default_filename
     if base_path:
         self.base_path = base_path
     elif not no_base_path:
         self.caller_info = caller_name()
         if self.caller_info:
             self.base_path = create_log_filename(self.caller_info.Base) + os.path.sep
     if rm_path:
         rm_log_path(self.base_path)
Beispiel #2
0
 def __init__(self,
              base_path=None,
              default_filename=None,
              rm_path=False,
              no_base_path=None,
              **kwargs):
     self.defaults = kwargs
     if no_base_path and not default_filename:
         default_filename = no_base_path
     self.default_filename = default_filename
     if base_path:
         self.base_path = base_path
     elif not no_base_path:
         self.caller_info = caller_name()
         if self.caller_info:
             self.base_path = create_log_filename(
                 self.caller_info.Base) + os.path.sep
     if rm_path:
         rm_log_path(self.base_path)
Beispiel #3
0
def rm_log_paths(*args, **kwargs):
    for arg in args:
        rm_log_path(arg, **kwargs)
Beispiel #4
0
def rm_log_paths(*args, **kwargs):
    for arg in args:
        rm_log_path(arg, **kwargs)