[ 
https://issues.apache.org/jira/browse/DAFFODIL-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17334255#comment-17334255
 ] 

Mike Beckerle commented on DAFFODIL-2510:
-----------------------------------------

Related Logging/Logger tickets
 * DAFFODIL-1047,
 * DAFFODIL-905,
 * DAFFODIL-1974,
 * DAFFODIL-747,
 * DAFFODIL-2213

> Thread Safety: Improve Logger/Logging 
> --------------------------------------
>
>                 Key: DAFFODIL-2510
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2510
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, CLI, Front End, Libraries, Middle 
> "End", TDML Runner
>    Affects Versions: 3.0.0
>            Reporter: Mike Beckerle
>            Priority: Major
>
> Every object that mixes in the Logging trait gets its own mutable vars for 
> logWriter and logLevel, and if not set, shares a single global state in the 
> LoggingDefaults object.
> This is not thread safe. At minimum LoggingDefaults should be a ThreadLocal.
> Furthermore, those objects don't need independent ability to specify a unique 
> logger or logging level. They should be sharing a logger supplied by the 
> application.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to