示例#1
0
def cat_logs(args):
    try:
        check_dest(args)
        all_logs = []

        if args.cached_only:
            all_logs += find_cached_logs(args)
        else:
            if not args.skip_s3:
                all_logs += download_s3_logs(args)
            if not args.skip_live:
                all_logs += download_live_logs(args)
        if not args.download_only or args.cache_only:
            cat_files(args, all_logs)
    except KeyboardInterrupt:
        exit('Stopping logcat...', 'magenta')
示例#2
0
def search_logs(args):
    try:
        all_logs = find_cached_logs(args)
        grep_files(args, all_logs)
    except KeyboardInterrupt:
        exit('Stopping logfetch...', 'magenta')
示例#3
0
def search_logs(args):
  try:
    all_logs = find_cached_logs(args)
    grep_files(args, all_logs)
  except KeyboardInterrupt:
    exit('Stopping logfetch...', 'magenta')