[jboss-jira] [JBoss JIRA] (JBLOGGING-104) MDC Logging not appearing in server.log

James Perkins (JIRA) issues at jboss.org
Thu Jul 17 16:22:29 EDT 2014


     [ https://issues.jboss.org/browse/JBLOGGING-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins closed JBLOGGING-104.
-----------------------------------

    Resolution: Rejected


This should be working and if not needs to be filed under [LOGMGR|https://issues.jboss.org/browse/LOGMGR].

> MDC Logging not appearing in server.log
> ---------------------------------------
>
>                 Key: JBLOGGING-104
>                 URL: https://issues.jboss.org/browse/JBLOGGING-104
>             Project: JBoss Logging
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: jboss-logging-logmanager, jboss-logging-spi
>    Affects Versions: 3.1.4.GA
>         Environment: Local
>            Reporter: ArunPrasath Rajmohan
>            Assignee: James Perkins
>   Original Estimate: 1 day, 4 hours
>  Remaining Estimate: 1 day, 4 hours
>
> Hi 
> I am trying to log using org.jboss.logging.MDC but the log entry is not found in server.log
> Steps followed:
> 1.Maven Dependency Used:
> {code:xml}
> <dependency>
> 	<groupId>org.jboss.logging</groupId>
> 	<artifactId>jboss-logging</artifactId>
> 	<version>3.1.4.GA</version>
> </dependency>
> {code}
> 2.Athe below code in the controller
> org.jboss.logging.MDC.put("MDC Worked", new String("MDC Worked"));
> 3.Placed the jboss-logging.xml inside META-INF folder of the web application.
> The content of  jboss-logging.xml  is as follows:
> {code:xml}
> <periodic-rotating-file-handler  
>          file-name="${jboss.server.log.dir}/server.log"  
>          name="FILE"  
>          autoflush="true"  
>          append="true"  
>          suffix=".yyyy-MM-dd">  
>   
>       <error-manager>  
>          <only-once/>  
>       </error-manager>  
>   
>        <formatter>  
>          <pattern-formatter pattern="%d %-5p [%c] (%t) [%X{entry1}, %X{entry2}] %s%E%n"/>  
>       </formatter>  
>    </periodic-rotating-file-handler> 
> {code}
> Problem:
> There are no errors but the log entry is not found in the server.log
> Regards
> Arun
>     	



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list