Logback: prepared properties

Where should I look to see the default log properties eg. user.home?

It's great that I can use an external file, system and environment to load properties, but are there any of those?

+3


source to share


2 answers


user.home

is a Java system property, not a logback property. You can see the rest of them with System.out.println(System.getProperties());

or with JConsole on the running JVM.



Also, I think there are only HOSTNAME

and CONTEXT_NAME

, defined in Logback: http://logback.qos.ch/manual/configuration.html#variableSubstitution

+4


source


user.home

not log specific, they come from java.



See http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html

+3


source







All Articles