Project

General

Profile

Actions

Feature #17148

open

add logging middleware to lib/cmd

Added by Ward Vandewege over 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

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/2020

Actions
Actions #1

Updated by Ward Vandewege over 1 year ago

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

Updated by Nico César about 1 year ago

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

Updated by Nico César about 1 year ago

  • Assigned To deleted (Nico César)
Actions

Also available in: Atom PDF