@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('--length', metavar='<length>', default=None, help=_('Length in lines to tail.'))
def do_console_log(cs, args):
 server = _find_server(cs, args.server)
 data = server.get_console_output(length=args.length)
 print(data)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( '--length' , metavar = '<length>' , default = None , help = _ ( 'Length in lines to tail.' ) ) def do_console_log ( cs , args ) : server = _find_server ( cs , args . server ) data = server . get_console_output ( length = args . length ) print ( data )
get console log output of a server .