<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mapped Diagnostic Context for Logging in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/mapped-diagnostic-context-for-logging/m-p/137387#M96312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are deploying many mission critical applications. In case of an error, it is absolutely vital to have enough abundant amount of status information, so that operators could track the reason as soon as possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even we need the log files to be read and analysed by a robot, so that the proper monitoring signal is fired. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it is not a good idea to show so much information when they are not really needed. Mapped Diagnostic Context can be a good solution. by using MDC, developer sends more information to the logger. but what could be logged, can be configured by the operator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information could be found here:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://logging.apache.org/log4j/2.x/manual/thread-context.html" rel="nofollow noopener noreferrer"&gt;http://logging.apache.org/log4j/2.x/manual/thread-context.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now these information are sent to the logger when available:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Process Definition ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Process execution Id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Business Key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Task Id&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the user can configure the output to show the above information as he needs. Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; log4j.appender.FILE.layout.ConversionPattern=&amp;nbsp;&amp;nbsp; %X{mdcProcessExecutionID}&amp;nbsp; %d{yyyy-MM-dd}-%t-%x-%-5p-%-10c:%m%n&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a sample implementation, to share with others, if this is the best way to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And also a jira issue, to track the changes&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2013 14:01:29 GMT</pubDate>
    <dc:creator>smirzai</dc:creator>
    <dc:date>2013-07-05T14:01:29Z</dc:date>
    <item>
      <title>Mapped Diagnostic Context for Logging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mapped-diagnostic-context-for-logging/m-p/137387#M96312</link>
      <description>We are deploying many mission critical applications. In case of an error, it is absolutely vital to have enough abundant amount of status information, so that operators could track the reason as soon as possible.Even we need the log files to be read and analysed by a robot, so that the proper monito</description>
      <pubDate>Fri, 05 Jul 2013 14:01:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mapped-diagnostic-context-for-logging/m-p/137387#M96312</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2013-07-05T14:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mapped Diagnostic Context for Logging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mapped-diagnostic-context-for-logging/m-p/137388#M96313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is the related Jira Issue: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1738" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1738&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 14:13:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mapped-diagnostic-context-for-logging/m-p/137388#M96313</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2013-07-05T14:13:17Z</dc:date>
    </item>
  </channel>
</rss>

