You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/site/antora/modules/ROOT/pages/log4j-jul.adoc
+21-19
Original file line number
Diff line number
Diff line change
@@ -43,40 +43,42 @@ Custom Handlers should instead use an appropriate xref:manual/appenders.adoc[App
43
43
44
44
Java logging levels are translated into Log4j logging levels dynamically.
45
45
The following table lists the conversions between a Java logging level and its equivalent Log4j level.
46
-
Custom levels should be implemented as an implementation of `LevelConverter`, and the Log4j property `log4j.jul.levelConverter` must be set to your custom class name.
46
+
Custom levels should be implemented as an implementation of `LevelConverter`, and the Log4j property xref:manual/configuration.adoc#log4j2.julLevelConverter[log4j2.julLevelConverter] must be set to your custom class name.
47
47
Using the default `LevelConverter` implementation, custom logging levels are mapped to whatever the current level of the `Logger` being logged to is using.
This Logger will be initialized using Log4j's "normal" mechanisms.
27
-
Thus a system property named log4j2.configurationFile will be checked to see if a specific configuration file has been provided, otherwise it will search for a configuration file on the classpath.
27
+
Thus the xref:manual/configuration.adoc#log4j2.configurationFile[`log4j2.configurationFile`] system property will be checked to see if a specific configuration file has been provided, otherwise it will search for a configuration file on the classpath.
28
28
The property may also be declare in log4j2.component.properties.
29
29
30
30
== Usage
@@ -122,67 +122,9 @@ logging:
122
122
Note that Log4j currently does not directly support encrypting the password.
123
123
However, Log4j does use Spring's standard APIs to access properties in the Spring configuration so any customizations made to Spring's property handling would apply to the properties Log4j uses as well.
124
124
125
-
If more extensive authentication is required an `AuthorizationProvider` can be implemented and the fully qualified class name in the `log4j2.authorizationProvider` system property, in log4j2.component.properties or in Spring's bootstrap.yml using either the `log4j2.authorizationProvider` key or with the key `logging.auth.authorizationProvider`.
125
+
If more extensive authentication is required an `AuthorizationProvider` can be implemented and its fully qualified class name should be specified in the xref:manual/configuration.adoc#log4j2.configurationAuthorizationProvider[log4j2.configurationAuthorizationProvider] system property, in log4j2.component.properties or in Spring's `bootstrap.yml` using either the `log4j2.authorizationProvider` or `logging.auth.authorizationProvider` key.
126
126
127
-
TLS can be enabled by adding the following system properties or defining them in log4j2.component.properties
128
-
129
-
|===
130
-
| Property | Optional or Default Value | Description
131
-
132
-
| log4j2.trustStoreLocation
133
-
| Optional
134
-
| The location of the trust store.
135
-
If not provided the default trust store will be used.
136
-
137
-
| log4j2.trustStorePassword
138
-
| Optional
139
-
| Password needed to access the trust store.
140
-
141
-
| log4j2.trustStorePasswordFile
142
-
| Optional
143
-
| The location of a file that contains the password for the trust store.
144
-
145
-
| log4j2.trustStorePasswordEnvironmentVariable
146
-
| Optional
147
-
| The name of the environment variable that contains the trust store password.
148
-
149
-
| log4j2.trustStoreKeyStoreType
150
-
| Required if keystore location provided
151
-
| The type of key store.
152
-
153
-
| log4j2.trustStoreKeyManagerFactoryAlgorithm
154
-
| Optional
155
-
| Java cryptographic algorithm.
156
-
157
-
| log4j2.keyStoreLocation
158
-
| Optional
159
-
| The location of the key store.
160
-
If not provided the default key store will be used.
161
-
162
-
| log4j2.keyStorePassword
163
-
| Optional
164
-
| Password needed to access the key store.
165
-
166
-
| log4j2.keyStorePasswordFile
167
-
| Optional
168
-
| The location of a file that contains the password for the key store.
169
-
170
-
| log4j2.keyStorePasswordEnvironmentVariable
171
-
| Optional
172
-
| The name of the environment variable that contains the key store password.
173
-
174
-
| log4j2.keyStoreType
175
-
| Required if trust store location provided.
176
-
| The type of key store.
177
-
178
-
| log4j2.keyStoreKeyManagerFactoryAlgorithm
179
-
| Optional
180
-
| Java cryptographic algorithm.
181
-
182
-
| log4j2.sslVerifyHostName
183
-
| false
184
-
| true or false
185
-
|===
127
+
For the properties required by TLS configuration see xref:manual/configuration.adoc#transport-security[the Transport Security configuration].
0 commit comments