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 2016/11/05 20:06:58 UTC

[jira] [Commented] (LOG4NET-256) log4net With MDC is not exactly threadsafe?

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

Dominik Psenner commented on LOG4NET-256:
-----------------------------------------

Bumping WinXP related issues, dev list please discuss if we can close this issue as won't fix because WinXP reached end of life.

> log4net With MDC is not exactly threadsafe?
> -------------------------------------------
>
>                 Key: LOG4NET-256
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-256
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.10
>         Environment: Windows Server 2003, Windows XP
>            Reporter: MK Pandey
>             Fix For: 1.2 Maintenance Release
>
>         Attachments: bug detals mail.jpg
>
>
> Hi All, 
> Our situation is that we are using MDC values (ex, transID) to set additional values which is used across multiple classes to identify the transaction. 
> We have one LogHelper class which creates private static instance of the as below: 
> log4net.ILog fileLogger = LogManager.GetLogger(GetType()); 
> When second thread starts and modifies the values, the subsequent logs from other threads start using the same values. 
> Any suggestions? 
> When using web.config file for appender defintion, is this not thread safe? 



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

Re: [jira] [Commented] (LOG4NET-256) log4net With MDC is not exactly threadsafe?

Posted by Arun Kumar <ar...@hotmail.com>.
Get Outlook for Android<https://aka.ms/ghei36>



On Sun, Nov 6, 2016 at 1:37 AM +0530, "Dominik Psenner (JIRA)" <ji...@apache.org>> wrote:


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

Dominik Psenner commented on LOG4NET-256:
-----------------------------------------

Bumping WinXP related issues, dev list please discuss if we can close this issue as won't fix because WinXP reached end of life.

> log4net With MDC is not exactly threadsafe?
> -------------------------------------------
>
>                 Key: LOG4NET-256
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-256
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.10
>         Environment: Windows Server 2003, Windows XP
>            Reporter: MK Pandey
>             Fix For: 1.2 Maintenance Release
>
>         Attachments: bug detals mail.jpg
>
>
> Hi All,
> Our situation is that we are using MDC values (ex, transID) to set additional values which is used across multiple classes to identify the transaction.
> We have one LogHelper class which creates private static instance of the as below:
> log4net.ILog fileLogger = LogManager.GetLogger(GetType());
> When second thread starts and modifies the values, the subsequent logs from other threads start using the same values.
> Any suggestions?
> When using web.config file for appender defintion, is this not thread safe?



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

Re: [jira] [Commented] (LOG4NET-256) log4net With MDC is not exactly threadsafe?

Posted by Arun Kumar <ar...@hotmail.com>.
Get Outlook for Android<https://aka.ms/ghei36>



On Sun, Nov 6, 2016 at 1:37 AM +0530, "Dominik Psenner (JIRA)" <ji...@apache.org>> wrote:


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

Dominik Psenner commented on LOG4NET-256:
-----------------------------------------

Bumping WinXP related issues, dev list please discuss if we can close this issue as won't fix because WinXP reached end of life.

> log4net With MDC is not exactly threadsafe?
> -------------------------------------------
>
>                 Key: LOG4NET-256
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-256
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.10
>         Environment: Windows Server 2003, Windows XP
>            Reporter: MK Pandey
>             Fix For: 1.2 Maintenance Release
>
>         Attachments: bug detals mail.jpg
>
>
> Hi All,
> Our situation is that we are using MDC values (ex, transID) to set additional values which is used across multiple classes to identify the transaction.
> We have one LogHelper class which creates private static instance of the as below:
> log4net.ILog fileLogger = LogManager.GetLogger(GetType());
> When second thread starts and modifies the values, the subsequent logs from other threads start using the same values.
> Any suggestions?
> When using web.config file for appender defintion, is this not thread safe?



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

Re: [jira] [Commented] (LOG4NET-256) log4net With MDC is not exactly threadsafe?

Posted by Arun Kumar <ar...@hotmail.com>.
Get Outlook for Android<https://aka.ms/ghei36>



On Sun, Nov 6, 2016 at 1:37 AM +0530, "Dominik Psenner (JIRA)" <ji...@apache.org>> wrote:


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

Dominik Psenner commented on LOG4NET-256:
-----------------------------------------

Bumping WinXP related issues, dev list please discuss if we can close this issue as won't fix because WinXP reached end of life.

> log4net With MDC is not exactly threadsafe?
> -------------------------------------------
>
>                 Key: LOG4NET-256
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-256
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.10
>         Environment: Windows Server 2003, Windows XP
>            Reporter: MK Pandey
>             Fix For: 1.2 Maintenance Release
>
>         Attachments: bug detals mail.jpg
>
>
> Hi All,
> Our situation is that we are using MDC values (ex, transID) to set additional values which is used across multiple classes to identify the transaction.
> We have one LogHelper class which creates private static instance of the as below:
> log4net.ILog fileLogger = LogManager.GetLogger(GetType());
> When second thread starts and modifies the values, the subsequent logs from other threads start using the same values.
> Any suggestions?
> When using web.config file for appender defintion, is this not thread safe?



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