trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susan Hinrichs <shinr...@verizonmedia.com>
Subject Re: [PROPOSAL] TS API for Status,Note,Warning,Alert
Date Tue, 08 Sep 2020 19:37:59 GMT
+1

On Tue, Sep 8, 2020 at 1:34 PM Alan Carroll <
solidwallofcode@verizonmedia.com> wrote:

> +1.
>
> On Tue, Sep 8, 2020 at 12:04 PM Aaron Canary <acanary@verizonmedia.com>
> wrote:
>
>> I'd like to propose adding API calls for the remaining methods in diag.h:
>> TSStatus(const char *fmt, ...) // prints to diags log (informational)
>> TSNote(const char *fmt, ...) // prints to diags log (implies significance)
>> TSWarning(const char *fmt, ...) // prints to diags log (implies concern)
>> TSAlert(const char *fmt, ...) // exit and restart, prints to diags
>> log (implies needs attention)
>>
>> The following are already exposed through the API:
>> TSDebug(const char* tag, const char *fmt, ...) // print to stderr
>> TSError(const char *fmt, ...) // prints to diags log (implies operation
>> failure, causes test fail in CI)
>> TSFatal(const char *fmt, ...) // exit and restart, prints to diags log
>> TSEmergeny(const char *fmt, ...). // exit and don't restart, prints to
>> diags log
>>
>> I'd like to add these to the TS API, and update the documentation to
>> directly describe the uses of each. I'm not interested in changing any
>> functionality of diags.h/.cc at the moment, just exposing for plugins to
>> use.
>>
>> Corrections? Major objections or concerns?
>> I'll reply here with the PR when it's ready. That might be a better forum
>> to discuss the details.
>>
>

Mime
View raw message