Dmitry
Dmitry

Reputation: 3038

Logback: out-of-the-box properties

Where should I look to see the default logback properties, e.g. user.home?

It is great that I can use external file, System and environment to load properties, but are there any out-of-box ones?

Upvotes: 3

Views: 2028

Answers (2)

J-16 SDiZ
J-16 SDiZ

Reputation: 26910

user.home is not logback specific, they come from java.

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

Upvotes: 3

artbristol
artbristol

Reputation: 32407

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 using JConsole on a running JVM.

Apart from that, I think there are only HOSTNAME and CONTEXT_NAME defined by Logback: http://logback.qos.ch/manual/configuration.html#variableSubstitution

Upvotes: 4

Related Questions