Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 382 Bytes
from cmd import Cmd
import logging
import sys
LOG = logging.getLogger(__name__)
class MyCmd(Cmd):
def do_EOF(self, line):
LOG.warning("Exiting")
sys.exit(0)
def do_hello(self, line):
logging.getLogger('internal.logger').debug('bla')
LOG.info("Hello")
do_exit = do_EOF
if __name__ == '__main__':
app = MyCmd()
app.cmdloop()
Something went wrong with that request. Please try again.