I’m a Confluence server plug-in developer and am trying to the log4j system supposedly built into Confluence server to output some diagnostics to the atlassian-confluence.log file.
I’ve got everything setup as far as including the log4j loggers in my plug-in Java sources:
// For logging
Creating a logger for my class:
private static final Logger log = LoggerFactory.getLogger(VSAdmin.class);
and using calling it:
I’ve added my packages by name to the logging package list in the Confluence Admin interface, set the logging level to ALL for the package, both in standard and diagnostic modes, restarted Confluence many times, but there simply is no atlassian-confluence.log file to be found.
Again, this is running Confluence 7.0.1 using the SDK atlas-run, so the log files are found in target\confluence\home\logs under the build directory, but while there are other log files there:
There is no atlassian-confluence.log at all anywhere on the system (Windows 10 64-bit) and none of these files contain any standard class log4j logging.
Going out of my mind here just trying to get some log info out.
I can send log strings to the console, but console output isn’t available from our QA server, which is a standard Confluence Server 7.0.1 install.
Are there other files I need to modify on my SDK instance to get logging to happen?
None of the information on the Atlassian Developer docs have been of any use, done everything they suggest, but there is no atlassian-confluence.log file to be found anywhere.