devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Keil (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DMAP-152) Use Log4net to log in .NET clients
Date Tue, 15 Sep 2015 16:59:45 GMT

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

Werner Keil commented on DMAP-152:
----------------------------------

Given concerns about the DLL in the codebase, and the fairly small (without init there are
just 2 calls to logging) usage of Log4Net, it seems reasonable to not use it, and avoid the
Windows EventLog issue this aimed to solve by logging only to the Windows command line.

We lose a bit of analytical information people could send, but they'll have to copy and paste
the console output if there are problems.

> Use Log4net to log in .NET clients
> ----------------------------------
>
>                 Key: DMAP-152
>                 URL: https://issues.apache.org/jira/browse/DMAP-152
>             Project: DeviceMap
>          Issue Type: Improvement
>          Components: .NET Client
>         Environment: Windows
>            Reporter: Werner Keil
>            Assignee: Werner Keil
>            Priority: Minor
>              Labels: .net, Windows, log4net, logging
>             Fix For: 1.0.1 .NET
>
>
> Currently the .NET clients have a very simple logging abstraction only writing to the
console. While it would add one external dependency (of another Apache project ;-) ) using
*Log4net* in these places could improve flexibility and control of logging, e.g. log into
both files and the console, tweak log levels, etc. 
> I evaluated .NET logging for a client project and did not find a satisfying built-in
log API similar to at least *java.util.logging* on the Java side. If it exists, please advise.
Since our solution here has to combine .NET and Java apps working together in a larger system
Log4net and Log4J were a pretty natural choice. Unless Microsoft has something out of the
box in .NET this being an Apache project would also make the license topic a no-brainer.



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

Mime
View raw message