Scott Carr | 4 Jun 19:14 2008

Log4Net Appender

I am using a static logger at the top of my class, and it is working fine.

Now I need to create an Appender that goes to a specific Company db.  
This changes for each class that is loaded, though.  Is there a way to 
use the static logger in this fashion, where I can change the specific 
instance for the Class Logger?

What would be the best way to implement this?

Should this go on the users list instead? 

Thanks

Jozef Sevcik (JIRA | 9 Jun 12:07 2008
Picon

[jira] Updated: (LOG4NET-116) allow smtp to ssl authenticate and with certificates.


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

Jozef Sevcik updated LOG4NET-116:
---------------------------------

    Attachment: SmtpAppender_EnableSSL.patch

Attached please find patch that adds EnableSsl for use with .NET 2.0 environment.
It's using .NET 2.0 SmtpClient.EnableSsl property.

> allow smtp to ssl authenticate and with certificates.
> -----------------------------------------------------
>
>                 Key: LOG4NET-116
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-116
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>         Environment: .net 2.0
> windows
>            Reporter: david olszewski
>            Priority: Trivial
>         Attachments: SmtpAppender_EnableSSL.patch
>
>
> It would be fantastic if more of the SMTP feature of .net 2.0 would be allowed such as 
> SSL authentication and with certificates.

(Continue reading)

Ron Grabowski (JIRA | 9 Jun 13:29 2008
Picon

[jira] Assigned: (LOG4NET-116) allow smtp to ssl authenticate and with certificates.


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

Ron Grabowski reassigned LOG4NET-116:
-------------------------------------

    Assignee: Ron Grabowski

> allow smtp to ssl authenticate and with certificates.
> -----------------------------------------------------
>
>                 Key: LOG4NET-116
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-116
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>         Environment: .net 2.0
> windows
>            Reporter: david olszewski
>            Assignee: Ron Grabowski
>            Priority: Trivial
>         Attachments: SmtpAppender_EnableSSL.patch
>
>
> It would be fantastic if more of the SMTP feature of .net 2.0 would be allowed such as 
> SSL authentication and with certificates.

--

-- 
This message is automatically generated by JIRA.
(Continue reading)

rgrabowski | 14 Jun 16:02 2008
Picon

svn commit: r667802 - /logging/log4net/trunk/src/Appender/SmtpAppender.cs

Author: rgrabowski
Date: Sat Jun 14 07:02:21 2008
New Revision: 667802

URL: http://svn.apache.org/viewvc?rev=667802&view=rev
Log:
Fix for LOG4NET-116. Added EnableSsl property to SmtpAppender for .NET 2.0.

Modified:
    logging/log4net/trunk/src/Appender/SmtpAppender.cs

Modified: logging/log4net/trunk/src/Appender/SmtpAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/SmtpAppender.cs?rev=667802&r1=667801&r2=667802&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/SmtpAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/SmtpAppender.cs Sat Jun 14 07:02:21 2008
 <at>  <at>  -307,6 +307,20  <at>  <at> 
 			set { m_mailPriority = value; }
 		}

+#if NET_2_0
+        /// <summary>
+        /// Enable or disable use of SSL when sending e-mail message
+        /// </summary>
+        /// <remarks>
+        /// This is available on MS .NET 2.0 runtime and higher
+        /// </remarks>
+        public bool EnableSsl
+        {
+            get { return m_enableSsl; }
(Continue reading)

Ron Grabowski (JIRA | 14 Jun 16:03 2008
Picon

[jira] Updated: (LOG4NET-141) Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.


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

Ron Grabowski updated LOG4NET-141:
----------------------------------

    Fix Version/s: 1.2.11

> Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-141
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-141
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Ron Grabowski
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         Attachments: LOG4NET-141_AdoNetAppender.patch
>
>
> The IDbConnection is created in the private method InitializeDatabaseConnection. Use the Connection
property to set the connection object does not work when a reconnect is required. Add a CreateConnection
method to allow sub-classes that handle creating their own connection.

--

-- 
(Continue reading)

Ron Grabowski (JIRA | 14 Jun 16:03 2008
Picon

[jira] Updated: (LOG4NET-116) allow smtp to ssl authenticate and with certificates.


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

Ron Grabowski updated LOG4NET-116:
----------------------------------

    Affects Version/s: 1.2.11

> allow smtp to ssl authenticate and with certificates.
> -----------------------------------------------------
>
>                 Key: LOG4NET-116
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-116
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 1.2.11
>         Environment: .net 2.0
> windows
>            Reporter: david olszewski
>            Assignee: Ron Grabowski
>            Priority: Trivial
>         Attachments: SmtpAppender_EnableSSL.patch
>
>
> It would be fantastic if more of the SMTP feature of .net 2.0 would be allowed such as 
> SSL authentication and with certificates.

--

-- 
(Continue reading)

Ron Grabowski (JIRA | 14 Jun 16:07 2008
Picon

[jira] Updated: (LOG4NET-95) Level.CompareTo() may result a wrong Value -> sorting of Levels does not work


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

Ron Grabowski updated LOG4NET-95:
---------------------------------

    Fix Version/s: 1.2.11

> Level.CompareTo() may result a wrong Value -> sorting of Levels does not work
> -----------------------------------------------------------------------------
>
>                 Key: LOG4NET-95
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-95
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.10
>         Environment: VS2005 C#
>            Reporter: Bernd Klaiber
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>
> I want to show a sorted list of available Levels.
> The sort routine uses Level.Compare(Level l, Level r).
> The result might be wrong when comparing ALL to another Level, because there is an overflow when just
subtracting the m_levelValue.
> try to call the integer compare method:
(Continue reading)

Ron Grabowski (JIRA | 14 Jun 16:07 2008
Picon

[jira] Updated: (LOG4NET-88) [PATCH] to AdoNetAppender.cs to support .NET 2.0 connectionStrings configuration section


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

Ron Grabowski updated LOG4NET-88:
---------------------------------

    Fix Version/s: 1.2.11

> [PATCH] to AdoNetAppender.cs to support .NET 2.0 connectionStrings configuration section
> ----------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-88
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-88
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows XP .NET 2.0
>            Reporter: Haacked
>            Assignee: Ron Grabowski
>             Fix For: 1.2.11
>
>         Attachments: AdoNetAppenderConnectionStringName.patch
>
>
> This is a patch for [LOG4NET-78] https://issues.apache.org/jira/browse/LOG4NET-78.  This adds a new
"connectionStringName" attribute (and corresponding ConnectionStringName) property to the
AdoNetAppender class.  This is a reference to a connection string within the <ConnectionStrings>
section of an App.config or Web.config file.
(Continue reading)

Ron Grabowski (JIRA | 14 Jun 16:09 2008
Picon

[jira] Updated: (LOG4NET-77) A small improvement of log4net.Layout.Pattern.ExceptionPatternConverter - added 'Option' propery support


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

Ron Grabowski updated LOG4NET-77:
---------------------------------

    Fix Version/s: 1.2.11

> A small improvement of log4net.Layout.Pattern.ExceptionPatternConverter  - added 'Option' propery support
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-77
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-77
>             Project: Log4net
>          Issue Type: Improvement
>    Affects Versions: 1.2.10
>            Reporter: Imrich Olha
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         Attachments: ExceptionPatternConverter-WithOptionSupport.cs.patch, ExceptionPatternConverter.cs
>
>
> A small improvement of log4net.Layout.Pattern.ExceptionPatternConverter  - added 'Option' propery support
> Example of usage:
>     <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender" >
>       <layout type="log4net.Layout.PatternLayout">
>         <conversionPattern value="%exception{TargetSite} - %exception{Message}%newline" />
(Continue reading)

Ron Grabowski (JIRA | 14 Jun 16:11 2008
Picon

[jira] Updated: (LOG4NET-158) XMLConfigurator.ConfigureAndWatch() leaks resources if called multiple times


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

Ron Grabowski updated LOG4NET-158:
----------------------------------

    Fix Version/s: 1.2.11

> XMLConfigurator.ConfigureAndWatch() leaks resources if called multiple times
> ----------------------------------------------------------------------------
>
>                 Key: LOG4NET-158
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-158
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.10
>         Environment: Windows Server 2003, Windows XP
>            Reporter: Strategic Insurance Software
>             Fix For: 1.2.11
>
>         Attachments: Release_handles_in_ConfigureAndWatch.patch
>
>
> If XMLConfigurator.ConfigureAndWatch() is called multiple times within an AppDomain, each time it is
called it leaks a Win32 file  handle (possibly from a FileSystemWatcher object not being disposed?) to the
folder containing the previous configuration file it was watching.
> Desired behavior would be to release the handle to the folder containing the previous configuration file.

(Continue reading)


Gmane