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

Mike Beckerle commented on DAFFODIL-747:
----------------------------------------

Daffodil is potentially a long-running thing. If you captured logging in any 
sort of memory data structure, you'll run out of memory eventually. That's to 
me a far larger sin than writing to stdout/stderr, and having an API where you 
can take control of that, and write them where you want (or discard or 
whatever).

The Include/Import Logging message is no longer LogLevel.Info, there is a 
specific logging level for debugging include/import issues.

So the specific cause of this ticket is gone (has been for a *long* time).

The remaining open aspect is just whether an API user should be *required* to 
provide a LogWriter, even if they just turn around and pass the 
ConsoleLogWriter, or if it is OK for the system to have a default stdout/stderr 
log writer it uses by default.

This I believe is not a settled issue, and in fact I am disinclined to require 
an API user to provide a log writer because the API is complex enough, and log 
writing is something that can be put-off until you start worrying about the 
whole system design into which Daffodil is being integrated. People just trying 
out the Daffodil API don't have to tend to this detail up front.

Hence, I'm suggesting this ticket should be closed as no longer relevant, not a 
bug, or similar status.

> JAPI leaking warning messages
> -----------------------------
>
>                 Key: DAFFODIL-747
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-747
>             Project: Daffodil
>          Issue Type: Bug
>          Components: API
>         Environment: JAPI, Win7, 0.10
>            Reporter: James Garriss
>            Priority: Major
>
> The JAPI is still writing some info directly to the output, notably this 
> warning message (which occurs every time an included schema is referenced):
> {code}
> 2013-06-06 11:06:35:998  edu.illinois.ncsa.daffodil.dsom.Include 
> Info[Included schema from 
> file:/C:/Users/jgarriss/Documents/Coding/Java/Polyphony/schemas/DefaultProperties.xsd
>  into namespace No_Namespace.]
> {code}
> I assume there is a similar warning when a file is imported.
> In the JAPI, nothing should be written directly to output.  Everything should 
> be captured and made available to the developer via the API.



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

Reply via email to