예제 #1
0
파일: show.py 프로젝트: carlgao/lenga
 def show_logging(self, args):
     "Show logging options"
     if len(args) > 1 and args[1]:
         if args[1] == 'file':
             self.msg('The current logfile is "%s".' %
                      self.logging_file)
         elif args[1] == 'overwrite':
             self.msg('Whether logging overwrites or appends to the'
                      + ' log file is %s.'
                      % fns.show_onoff(self.logging_overwrite))
         elif args[1] == 'redirect':
             self.msg('The logging output mode is %s.' %
                      fns.show_onoff(self.logging_redirect))
             return False
         else:
             self.undefined_cmd("show logging", args[1])
             return False
     else:
         self.msg('Future logs will be written to %s.' % self.logging_file)
         if self.logging_overwrite:
             self.msg('Logs will overwrite the log file.')
         else:
             self.msg('Logs will be appended to the log file.')
         if self.logging_redirect:
             self.msg("Output will be sent only to the log file.")
         else:
             self.msg("Output will be logged and displayed.")
             return False
     return False
예제 #2
0
 def show_logging(self, args):
     "Show logging options"
     if len(args) > 1 and args[1]:
         if args[1] == 'file':
             self.msg('The current logfile is "%s".' % self.logging_file)
         elif args[1] == 'overwrite':
             self.msg('Whether logging overwrites or appends to the' +
                      ' log file is %s.' %
                      fns.show_onoff(self.logging_overwrite))
         elif args[1] == 'redirect':
             self.msg('The logging output mode is %s.' %
                      fns.show_onoff(self.logging_redirect))
             return False
         else:
             self.undefined_cmd("show logging", args[1])
             return False
     else:
         self.msg('Future logs will be written to %s.' % self.logging_file)
         if self.logging_overwrite:
             self.msg('Logs will overwrite the log file.')
         else:
             self.msg('Logs will be appended to the log file.')
         if self.logging_redirect:
             self.msg("Output will be sent only to the log file.")
         else:
             self.msg("Output will be logged and displayed.")
             return False
     return False
예제 #3
0
파일: show.py 프로젝트: carlgao/lenga
 def get_flush(self):
     return fns.show_onoff(self.flush)
예제 #4
0
파일: show.py 프로젝트: carlgao/lenga
 def get_dbg_pydb(self):
     return self.msg(fns.show_onoff(self.dbg_pydb))
예제 #5
0
파일: show.py 프로젝트: carlgao/lenga
 def get_deftrace(self):
     return fns.show_onoff(self.deftrace)
예제 #6
0
파일: show.py 프로젝트: carlgao/lenga
 def get_basename(self):
     return fns.show_onoff(self.basename)
예제 #7
0
파일: show.py 프로젝트: carlgao/lenga
 def get_cmdtrace(self):
     return fns.show_onoff(self.cmdtrace)
예제 #8
0
파일: show.py 프로젝트: carlgao/lenga
 def get_linetrace(self):
     return fns.show_onoff(self.linetrace)
예제 #9
0
 def get_cmdtrace(self):
     return fns.show_onoff(self.cmdtrace)
예제 #10
0
 def get_linetrace(self):
     return fns.show_onoff(self.linetrace)
예제 #11
0
 def get_sigcheck(self):
     return fns.show_onoff(self.sigcheck)
예제 #12
0
 def get_fntrace(self):
     return fns.show_onoff(self.fntrace)
예제 #13
0
 def get_interactive(self):
     return fns.show_onoff(not self.noninteractive)
예제 #14
0
 def get_flush(self):
     return fns.show_onoff(self.flush)
예제 #15
0
 def get_deftrace(self):
     return fns.show_onoff(self.deftrace)
예제 #16
0
 def get_dbg_pydb(self):
     return self.msg(fns.show_onoff(self.dbg_pydb))
예제 #17
0
파일: show.py 프로젝트: carlgao/lenga
 def get_fntrace(self):
     return fns.show_onoff(self.fntrace)
예제 #18
0
 def get_autoeval(self):
     return fns.show_onoff(self.autoeval)
예제 #19
0
파일: show.py 프로젝트: carlgao/lenga
 def get_interactive(self):
     return fns.show_onoff(not self.noninteractive)
예제 #20
0
파일: show.py 프로젝트: carlgao/lenga
 def get_autoeval(self):
     return fns.show_onoff(self.autoeval)
예제 #21
0
파일: show.py 프로젝트: carlgao/lenga
 def get_sigcheck(self):
     return fns.show_onoff(self.sigcheck)
예제 #22
0
 def get_basename(self):
     return fns.show_onoff(self.basename)