Example #1
0
def main():
    npyscreen2.activate_logging()
    npyscreen2.add_rotating_file_handler('npyscreen2.log',
                                         level='debug',
                                         #filtr='npyscreen2.app',
                                         filtr='npyscreen2.forms.form',
                                         max_bytes=100000000,  # 100MB
                                         backup_count=5,)
    app = TestApp(keypress_timeout_default=1)
    app.run()
Example #2
0
def main():
    npyscreen2.activate_logging()
    npyscreen2.add_rotating_file_handler('npyscreen2.log',
                                         level='debug',
                                         #filtr='npyscreen2.app',
                                         #filtr='npyscreen2.forms.traditional',
                                         #filtr='npyscreen2.containers',
                                         #filtr='npyscreen2.widgets.widget',
                                         #filtr='npyscreen2.containers.container',
                                         #filtr='npyscreen2.containers.gridcontainer',
                                         #filtr='npyscreen2.test',
                                         #filtr='npyscreen2.widgets.input_handler',
                                         max_bytes=100000000,  # 100MB
                                         backup_count=5,
                                         mode='w')
    app = TestApp(keypress_timeout_default=1)
    app.run()