<?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 write to the log file in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258531#M211661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im working with two alfresco environments: windows desktop and ubuntu server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed some components and, for debugging reasons im writing to the console. I can use this on the windows machine because in windows Im running alfresco using the bat file (console mode). However, as far as I know, I cant do this in ubuntu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, instead of writing to the console, I tried to write to the log file using log4j. First in each component I create a log4j object and I set the message like info and debugging. Then I set something like this in the&amp;nbsp; log4j.propertiesfile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.com.alfresco.myenterpise.services=info -&amp;gt; in order to log the info entries&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.com.alfresco.myenterpise.services=debug -&amp;gt; in order to log the debugging entries &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that "com.alfresco.myenterpise.services" is exactly the path Im using in the organization of my classes in eclipse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then restarted alfresco. However, I cant see any log written to the catalina log file…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 12:11:59 GMT</pubDate>
    <dc:creator>forumwebuser</dc:creator>
    <dc:date>2010-11-18T12:11:59Z</dc:date>
    <item>
      <title>write to the log file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258531#M211661</link>
      <description>Hello,Im working with two alfresco environments: windows desktop and ubuntu server.I have developed some components and, for debugging reasons im writing to the console. I can use this on the windows machine because in windows Im running alfresco using the bat file (console mode). However, as far as</description>
      <pubDate>Thu, 18 Nov 2010 12:11:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258531#M211661</guid>
      <dc:creator>forumwebuser</dc:creator>
      <dc:date>2010-11-18T12:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: write to the log file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258532#M211662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using the JAVA options "-Dlog4j.debug=true" … this will give you information at run time about which log4j configuration files are being loaded and other useful information that might help debug the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 16:09:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258532#M211662</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2010-11-18T16:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: write to the log file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258533#M211663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually my problem was that I was looking for the wrong file…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However your tip is very helpfull,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 12:39:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/write-to-the-log-file/m-p/258533#M211663</guid>
      <dc:creator>forumwebuser</dc:creator>
      <dc:date>2010-11-30T12:39:09Z</dc:date>
    </item>
  </channel>
</rss>

