[
https://issues.apache.org/jira/browse/UIMA-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17290019#comment-17290019
]
Richard Eckart de Castilho commented on UIMA-6303:
--------------------------------------------------
UIMAv2 was using the {{JSR47Logger_impl}} by default. This delegates to Java
Util Logging. JUL in fact defines a "CONFIG" log level which is considered by
JUL to be more fine-grained than INFO. According to the JUL documentation,
"CONFIG messages are intended to provide a variety of static configuration
information to assist in debugging problems that may be associated with
particular configurations".
When UIMAv3 switched to SFL4J as the default backend, the logging for the UIMA
"CONFIG" level was changed so that the messages are logged at INFO level with
the "CONFIG" marker. This allows the logging backend to [fish out the marked
messages and process them in a special
way|https://logging.apache.org/log4j/2.x/manual/filters.html].
The change entails that now, users are faced with a slew of log "CONFIG" log
messages (in particular when using type systems with lots of imports) *unless*
they reconfigure their logging system to drop the CONFIG messages. By default,
logging backends usually pass through information at the INFO level.
By demoting the UIMA CONFIG to the SLF4J DEBUG level, this problem of log spam
unless the logging is re-configured should be avoidable. It is IMHO also in
line with the description of the CONFIG level provided bs JUL after which the
UIMA CONFIG level seems to have been modelled.
> Logs are spammed with "Import by location/name" messages
> --------------------------------------------------------
>
> Key: UIMA-6303
> URL: https://issues.apache.org/jira/browse/UIMA-6303
> Project: UIMA
> Issue Type: Bug
> Components: uimaj
> Affects Versions: 3.1.1SDK
> Reporter: Richard Eckart de Castilho
> Assignee: Richard Eckart de Castilho
> Priority: Major
> Fix For: 3.2.0SDK
>
> Attachments: Screenshot 2021-02-24 at 16.05.51.png, Screenshot
> 2021-02-24 at 16.17.41.png
>
>
> The CONFIG logging level of UIMA is mapped to the INFO level of SLF4J. This
> causes all kinds of configuration information to be logged at INFO level
> (e.g. components being initialized)... but it also causes all "Import by
> name/location" messages to be logged at info level. If you work with
> non-trivial type systems that import other type systems, this can very
> quickly become *really* annoying.
> I see this in the v3 branch mainly. Looking at the v2 branch, I can see that
> CONFIG is also mapped to INFO there for the log4j logger - no idea why it
> never annoyed me with v2. I don't remember having seen any such messages.
> Need to check...
> So there are two options:
> - map CONFIG to DEBUG
> - demote the "Import by..." messages from CONFIG to FINE (FINE == DEBUG)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)