Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- database
- mybatis
- Java
- Kubernetes
- kubectl
- docker
- JavaScript
- VSCode
- tibero
- jetbrains
- Windows
- nginx
- IntelliJ
- useEffect
- gradle
- intellijIDEA
- nodejs
- MySQL
- Git
- NCP
- wildfly
- JPA
- Spring
- dbeaver
- gson
- react
- log4j2
- LOG4J
- BPMN
- springboot
Archives
- Today
- Total
두 손끝의 창조자
log4j2 속성 위치 접두어 목록 본문
PrefixContext
base64 | Base64 encoded data. The format is ${base64:Base64_encoded_data}. For example: ${base64:SGVsbG8gV29ybGQhCg==} yields Hello World!. |
bundle | Resource bundle. The format is ${bundle:BundleName:BundleKey}. The bundle name follows package naming conventions, for example: ${bundle:com.domain.Messages:MyKey}. |
ctx | Thread Context Map (MDC) |
date | Inserts the current date and/or time using the specified format |
env | System environment variables. The formats are ${env:ENV_NAME} and ${env:ENV_NAME:-default_value}. |
jndi | A value set in the default JNDI Context. (Requires system property log4j2.enableJndiLookup to be set to true.) |
jvmrunargs | A JVM input argument accessed through JMX, but not a main argument; see RuntimeMXBean.getInputArguments(). Not available on Android. |
log4j | Log4j configuration properties. The expressions ${log4j:configLocation} and ${log4j:configParentLocation} respectively provide the absolute path to the log4j configuration file and its parent folder. |
main | A value set with MapLookup.setMainArguments(String[]) |
map | A value from a MapMessage |
sd | A value from a StructuredDataMessage. The key "id" will return the name of the StructuredDataId without the enterprise number. The key "type" will return the message type. Other keys will retrieve individual elements from the Map. |
sys | System properties. The formats are ${sys:some.property} and ${sys:some.property:-default_value}. |
반응형
Comments