I think that (some) modern logging frameworks have this. 

log4j and logback (and maybe others) have a "OFF" level.

Not sure about the API call part. Internet search seems to indicate several ways
to do this, with various caveats.

-Marshall



On 1/25/2017 10:13 AM, Thilo Goetz wrote:
> What would be really nice is a simple way to turn off all logging, preferably
> via an API call.
>
>
> On 25/01/2017 15:41, Marshall Schor wrote:
>> Thoughts on possible MDC (Mapped Diagnostic Contexts) for core UIMA:
>>    * the id of the CAS (if there is a cas in the context at the point of
>> logging)
>>    * the id of the pipeline (currently missing but could be architected into 
>> V3)
>>      ** within the pipeline, the key name of the component (if there is a 
>> cas in
>> the context at the point of logging)
>>      ** for UIMA-as/service: the client id information (which may include
>> pipeline id, "session id", etc.)
>>
>> I'm guessing that more standard things like the caller's class, the thread
>> id/name, might be generally available.
>>
>> -Marshall
>>
>>
>
>

Reply via email to