Project

General

Profile

Actions

Feature #17148

open

add logging middleware to lib/cmd

Added by Ward Vandewege almost 4 years ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

A logging middleware in lib/cmd that sets up logging and profiling according to cli flags. This way, our various applications don't need to handle that themselves.

It should use a context passed to RunCommand, which can then just call `ctxlog.FromContext(ctx)` and have logging/profiling set up for it.

The implementation could be vaguely similar to cmd.Multi in lib/cmd -- so cmd/arvados-client could say handler = cmd.LogOptions(cmd.Multi(...)).

As part of this story, some existing commands will need to be adapted (e.g. lib/costanalyzer and lib/deduplicationreport already handle the -loglevel argument).


Related issues

Related to Arvados - Feature #16950: [cli] add costanalyzer to arvados-clientResolvedWard Vandewege11/03/2020Actions
Actions #1

Updated by Ward Vandewege almost 4 years ago

  • Related to Feature #16950: [cli] add costanalyzer to arvados-client added
Actions #2

Updated by Nico César over 3 years ago

  • Assigned To set to Nico César
Actions #3

Updated by Nico César over 3 years ago

  • Assigned To deleted (Nico César)
Actions #4

Updated by Peter Amstutz over 1 year ago

  • Release set to 60
Actions #5

Updated by Peter Amstutz 7 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF