Skip to content

Instantly share code, notes, and snippets.

@digitaljhelms
Last active March 13, 2018 04:49
Show Gist options
  • Save digitaljhelms/d4aac0e8075353d248cae9ec268f6da3 to your computer and use it in GitHub Desktop.
Save digitaljhelms/d4aac0e8075353d248cae9ec268f6da3 to your computer and use it in GitHub Desktop.
Instructions on adding the AEM error log to the Console application Reports

Using a symlink to easily view the AEM log on macOS +10.12 in the Console application (without having to manually find/open the log file) won’t work anymore, it requires a hard link:

brew install hardlink-osx
mkdir ~/Library/Logs/AEM
hln <PROJECT ROOT>/AEM/author/crx-quickstart/logs/error.log ~/Library/Logs/AEM/<PROJECT NAME>.error.log
open -a Console.app

Anytime you want to view the log, it’s at Reports → ~/Library/Logs → AEM → <PROJECT NAME>.error.log

@digitaljhelms
Copy link
Author

Note: When the log file is cycled out (done by AEM daily) the hard link will break – haven't found a workaround for this except creating the hard link again – probably something that could be done as part of the AEM quickstart/start script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment