tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TOMEE-1856) Empty log files from AsyncConsoleHandler
Date Sat, 02 Jul 2016 14:27:11 GMT

     [ https://issues.apache.org/jira/browse/TOMEE-1856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau resolved TOMEE-1856.
---------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 7.0.2

> Empty log files from AsyncConsoleHandler
> ----------------------------------------
>
>                 Key: TOMEE-1856
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1856
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.1
>            Reporter: Petras
>            Assignee: Romain Manni-Bucau
>            Priority: Minor
>             Fix For: 7.0.2
>
>
> {{org.apache.tomee.jul.formatter.AsyncConsoleHandler}} instantiation triggers creation
of empty log files, prefixed with "juli." (ex. _juli.2016-07-02.log_) in _\{currentDir\}/logs/_,
where _\{currentDir\}_ is folder from which TomEE was started. Please note, not in _$\{catalina.base}/logs_
folder. As this handler is meant for logging to the console, it is not supposed to create
any log files, is it?
> The issue is that this class indirectly extends {{org.apache.juli.FileHandler}}, which
constructor invokes {{FileHandler#openWriter}} method creating log file for writing. If directory
is not supplied via constructor parameters it creates _logs/_ folder within current folder
and new file to for output log. The fix would be to override this method with empty body.

> The only workaround is to specify location of this empty file in TomEE _logging.properties_
ex.: 
> {{org.apache.tomee.jul.formatter.AsyncConsoleHandler.directory = $\{catalina.base}/logs}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message