Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Logging from Macro Plugin doesn't show up in log

Michael
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2021

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 !");

 

1 answer

0 votes
Michael
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 12, 2021

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 ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events