Logging and profiling meaning of %q{2}

Hi Community,

While configuring logging options in Jira Software recent versions (7.1.9 and latest) to prepare and test migration on referenced JIRA instance, We face an unknown log4j pattern in the default log4j.properties file ship with JIRA Software (Zip packages for standalone).

Extract (line 62) of log4j.properties is :


log4j.appender.filelog.layout.ConversionPattern=%d %t %p %X{jira.username} %X{jira.request.id} %X{jira.request.assession.id} %X{jira.request.ipaddr} %X{jira.request.url} [%q{2}] %m%n

Apache log4j documentation has no reference of [%q{2}] pattern (https://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout).\\

Can one please explain that pattern or point out a web link to a reference where the meaning and the description of this pattern ?

Thank you for reading and helping me.

1 answer

0 vote
Boris Berenberg Community Champion Dec 11, 2017

milliseconds as decimal I believe

Thank you Boris for your answer but it seems to be more like a custom pattern as nor Log4j neither SLF4j use the %q char.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

127 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you