<?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 How to turn on debug logging docker images in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-turn-on-debug-logging-docker-images/m-p/103166#M29405</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I am using the following public docker images from alfresco hub for starting up alfresco:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;alfresco/alfresco-content-repository-community:&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;6.2.1-A8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;alfresco/alfresco-transform-core-aio:2.3.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;alfresco/alfresco-share:6.2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I wanted to check how to turn debug logging on for them? Is there an environment variable I could pass in to enable that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;Many thanks,&lt;/P&gt;&lt;P class="p1"&gt;Richa&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 17:16:22 GMT</pubDate>
    <dc:creator>rimisra</dc:creator>
    <dc:date>2020-11-06T17:16:22Z</dc:date>
    <item>
      <title>How to turn on debug logging docker images</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-turn-on-debug-logging-docker-images/m-p/103166#M29405</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I am using the following public docker images from alfresco hub for starting up alfresco:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;alfresco/alfresco-content-repository-community:&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;6.2.1-A8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;alfresco/alfresco-transform-core-aio:2.3.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;alfresco/alfresco-share:6.2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I wanted to check how to turn debug logging on for them? Is there an environment variable I could pass in to enable that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;Many thanks,&lt;/P&gt;&lt;P class="p1"&gt;Richa&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 17:16:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-turn-on-debug-logging-docker-images/m-p/103166#M29405</guid>
      <dc:creator>rimisra</dc:creator>
      <dc:date>2020-11-06T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn on debug logging docker images</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-turn-on-debug-logging-docker-images/m-p/103167#M29406</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I wanted to check how to turn debug logging on for them? Is there an environment variable I could pass in to enable that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;

&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For the services which are based upon spring boot e.g. '&lt;SPAN&gt;alfresco-transform-core-aio&lt;/SPAN&gt;', you can set debug log level via docker compose. But you can't do that for acs/share. I am afraid that this is not an option available via docker compose for acs/share.&lt;/P&gt;
&lt;P&gt;example of spring boot based apps like transform services:&lt;/P&gt;
&lt;PRE&gt;transform-core-aio:
        image: alfresco/alfresco-transform-core-aio:2.3.4
        mem_limit: 1536m
        environment:
            JAVA_OPTS: "
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;            -Dlogging.level.org.alfresco.transform.common.TransformerDebug=debug &lt;BR /&gt;            -Dlogging.level.org.alfresco.transform.router.TransformerDebug=debug
&lt;/STRONG&gt;&lt;/FONT&gt;            -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
        ports:
            - 8090:8090&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;or for enterprise router on a package level:&lt;BR /&gt;&lt;/U&gt;&lt;BR /&gt;transform-router:&lt;BR /&gt;   image: local.nexus.docker:8083/alfresco/alfresco-transform-router:${TRANSFORMATION_ROUTER_TAG}&lt;BR /&gt;   deploy:&lt;BR /&gt;    resources:&lt;BR /&gt;    limits:&lt;BR /&gt;     memory: 512m&lt;BR /&gt;   environment:&lt;BR /&gt;     JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 &lt;BR /&gt;&lt;FONT color="#FF0000"&gt;          -Dlogging.level.org.alfresco.transform.router=error&lt;BR /&gt;&lt;/FONT&gt;       "&lt;BR /&gt;     ACTIVEMQ_URL: "nio://activemq:61616"&lt;BR /&gt;     CORE_AIO_URL: "http://transform-core-aio:8090"&lt;BR /&gt;     FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"&lt;BR /&gt;   ports:&lt;BR /&gt;    - "8095:8095"&lt;BR /&gt;   links:&lt;BR /&gt;   - activemq&lt;/PRE&gt;
&lt;P&gt;If you are using enterprise version, you have an option in admin console to set/enable/disable log settings (these settings are not presisted and on restart any setting done via admin console will be lost) found under &lt;A href="https://docs.alfresco.com/6.2/concepts/adminconsole-log-settings.html" target="_blank" rel="noopener nofollow noreferrer"&gt;support-tools&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You seems to be using community version, and support-tools is not by default available for this version. You can use this add-on :&amp;nbsp;&lt;A href="https://github.com/OrderOfTheBee/ootbee-support-tools" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/OrderOfTheBee/ootbee-support-tools&lt;/A&gt; to get the similar options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to apply the amps on both alfresco and share war file deployed under the containers. However, if you terminate the containers all these additions will be lost.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best option would be to use DockerFile in combination with docker-compose and build the image with any add-ons/extensions, custom log4j etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of DockerFile usage in docker-compose:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/docker-compose.yml#L15" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/docker-compose.yml#L15&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/configs-to-override/alfresco/Dockerfile#L50" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/configs-to-override/alfresco/Dockerfile#L50&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also take a look at this thread on how to copy/apply extensions via dockerfile:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/acs-community-deployment/issues/131#issuecomment-691300550" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/acs-community-deployment/issues/131#issuecomment-691300550&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Additonally, if you wish to connect to the containers, you can do it using below given command and update the log levels as usual you do on any linux sever where acs is deployed.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/tasks/log-levels-set.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/tasks/log-levels-set.html&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;Connect to a container:

docker exec -i -t &amp;lt;container_Name/id&amp;gt; /bin/bash

example:
docker exec -it docker_alfresco_1 /bin/bash&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 20:34:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-turn-on-debug-logging-docker-images/m-p/103167#M29406</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-11-06T20:34:02Z</dc:date>
    </item>
  </channel>
</rss>

