<?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 Re: Logging locations galore... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295350#M248480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's because when alfresco first starts up, it starts some logging before it even reads custom-log4j.properties.&amp;nbsp; So those go where tomcat thinks is the current working directory.&amp;nbsp; once tomcat has loaded up custom-log4j.properties and read/applied the location from there, it starts logging to that new location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not much you can do about it unless you're willing to unpack your war file, edit the location in log4j.properties and repack the war file.&amp;nbsp; or build from source, I guess.&amp;nbsp; I don't worry about the initial log entries myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm running from the bundle, I usually just edit alfresco.sh.&amp;nbsp; where it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSTALLDIR=/opt/alfresco-[version]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I add a line under it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cd ${INSTALLDIR}/tomcat/logs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that way, the initial logs will go there. I have custom-log4j.properties also send the logs to the same directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That also helps with solr.log and share.log (which you can't redirect with entries in tomcat/shared/classes/alfresco/…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 00:57:21 GMT</pubDate>
    <dc:creator>bopolissimus</dc:creator>
    <dc:date>2013-07-04T00:57:21Z</dc:date>
    <item>
      <title>Logging locations galore...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295349#M248479</link>
      <description>I have edited the file /tomcat/shared/classes/alfresco/extension/custom-log4j.properties to have all the log files that are generated to be placed in /var/log/alfresco/then the file name.logI'm getting two locations of where my files are being generated when I restart alfresco. From other posts on t</description>
      <pubDate>Wed, 03 Jul 2013 23:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295349#M248479</guid>
      <dc:creator>eswbitto</dc:creator>
      <dc:date>2013-07-03T23:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logging locations galore...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295350#M248480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's because when alfresco first starts up, it starts some logging before it even reads custom-log4j.properties.&amp;nbsp; So those go where tomcat thinks is the current working directory.&amp;nbsp; once tomcat has loaded up custom-log4j.properties and read/applied the location from there, it starts logging to that new location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not much you can do about it unless you're willing to unpack your war file, edit the location in log4j.properties and repack the war file.&amp;nbsp; or build from source, I guess.&amp;nbsp; I don't worry about the initial log entries myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm running from the bundle, I usually just edit alfresco.sh.&amp;nbsp; where it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSTALLDIR=/opt/alfresco-[version]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I add a line under it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cd ${INSTALLDIR}/tomcat/logs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that way, the initial logs will go there. I have custom-log4j.properties also send the logs to the same directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That also helps with solr.log and share.log (which you can't redirect with entries in tomcat/shared/classes/alfresco/…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 00:57:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295350#M248480</guid>
      <dc:creator>bopolissimus</dc:creator>
      <dc:date>2013-07-04T00:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logging locations galore...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295351#M248481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tidbit bopolissimus…I'll put that in my notes for if I ever have to do a fresh install. Marking this as solved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 16:37:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/logging-locations-galore/m-p/295351#M248481</guid>
      <dc:creator>eswbitto</dc:creator>
      <dc:date>2013-07-04T16:37:31Z</dc:date>
    </item>
  </channel>
</rss>

