Search code examples
windowsalfrescoprompt

How to view log file on service startup?


Is it possible to view the log files when starting alfresco services on windows (prompt), like the tail -f on linux.


Solution

  • Actually, there is two approaches to achieve that:

    1. Start Alfresco tomcat as a service, and have a 3rd party software like mtail* and tail the <alfresco-path>\alfresco.log
    2. Stop tomcat service from msc.exe, tweak setenv.bat inside <path-to-alfresco-dir>\tomcat\bin\setenv.bat to give sufficient memory to the JVM, and then run <path-to-alfresco-dir>\tomcat\bin\startup.bat inside a cmd console

    * Here is a list of alternative tools / methods.