I use this code to log from a confluence macro plugin, but it doesn't show up in log - why ?
It doesn't show up in console from atlassian-run, it also doesnT show up in logs of test and production envionment, I have added the fully qualified class name in the logging administration panel
package com.atlassian.tutorial.macro;
.... some other imports .....
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class jissues implements Macro {
public String execute(Map<String, String> map, String s, ConversionContext conversionContext) throws MacroExecutionException {
final Logger log = LoggerFactory.getLogger(jissues.class);
log.info("Jissues Macro executes !");
I changed to
final Logger log = LoggerFactory.getLogger(jissues.class);
public String execute(Map<String, String> map, String s, ConversionContext conversionContext) throws MacroExecutionException {
log.info("Jissues Macro executes !");
log.warn("Jissues Macro executes - no warning, only for testing !");
now I get the warning in the devloppment console, but nut in test system.
Any Idea why ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.