You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Dominik Psenner (JIRA)" <ji...@apache.org> on 2010/02/12 08:37:27 UTC

[jira] Issue Comment Edited: (LOG4NET-245) Need information on Exception Handling mechanism used in Log4Net project

    [ https://issues.apache.org/jira/browse/LOG4NET-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831900#action_12831900 ] 

Dominik Psenner edited comment on LOG4NET-245 at 2/12/10 7:36 AM:
------------------------------------------------------------------

Good morning.

What are you about to accomplish with that exception filter?

I'm quite sure log4net internally has no exception filter installed as it
would make no sense (at least it stands to reason for me). But I may also be
on the wrong boat.

And externally (i.e. by something like Logger.InstallExceptionFilter() in
your Main()) makes no sense either, as it is your responsibility to capture
and handle exceptions and not of the logging system that should only provide
the features to log a exception that occurred for diagnostic purposes.

[EDIT]
actually [2] makes sense in some cases; but generally it is better to define the filters in the config file

if you want to accomplish that your exception does not crash from a exception, you will have to ensure correct try {} catch {} blocks as anyway it is not the responsibility of the logging system to do so. please correct me if there's a misunderstanding.
[/EDIT]

Greetings from Italy,
D.



      was (Author: dpsenner@gmail.com):
    Good morning.

What are you about to accomplish with that exception filter?

I'm quite sure log4net internally has no exception filter installed as it
would make no sense (at least it stands to reason for me). But I may also be
on the wrong boat.

And externally (i.e. by something like Logger.InstallExceptionFilter() in
your Main()) makes no sense either, as it is your responsibility to capture
and handle exceptions and not of the logging system that should only provide
the features to log a exception that occurred for diagnostic purposes.

Greetings from Italy,
D.


  
> Need information on Exception  Handling mechanism used in Log4Net project
> -------------------------------------------------------------------------
>
>                 Key: LOG4NET-245
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-245
>             Project: Log4net
>          Issue Type: Task
>    Affects Versions: 1.2.10
>         Environment: XP
>            Reporter: Rajat Raina
>            Priority: Blocker
>
> I need some information as we are working on a common Exception handling framework for all our code.
> Can you please let me know if Log4Net dll defines any Exception filters through the usage of Microsoft's SetUnhandledExceptionFilter?
> I need this information for my common exception handling framework designing.
> Please let me know!
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.