Skip to content

Commit 30d34c0

Browse files
committed
Merge branch '3.2.x' into 3.3.x
Closes gh-41516
2 parents a65e452 + 6941d0e commit 30d34c0

File tree

1 file changed

+13
-10
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features

1 file changed

+13
-10
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,30 +131,33 @@ The following colors and styles are supported:
131131

132132
By default, Spring Boot logs only to the console and does not write log files.
133133
If you want to write log files in addition to the console output, you need to set a configprop:logging.file.name[] or configprop:logging.file.path[] property (for example, in your `application.properties`).
134+
If both properties are set, `logging.file.path` is ignored and only `logging.file.name` is used.
134135

135136
The following table shows how the `logging.*` properties can be used together:
136137

137138
.Logging properties
138-
[cols="1,1,1,4"]
139+
[cols="1,1,4"]
139140
|===
140-
| configprop:logging.file.name[] | configprop:logging.file.path[] | Example | Description
141+
| configprop:logging.file.name[] | configprop:logging.file.path[] | Description
141142

142143
| _(none)_
143144
| _(none)_
144-
|
145145
| Console only logging.
146146

147-
| Specific file
147+
| Specific file (for example, `my.log`)
148148
| _(none)_
149-
| `my.log`
150-
| Writes to the specified log file.
151-
Names can be an exact location or relative to the current directory.
149+
| Writes to the location specified by `logging.file.name`.
150+
The location can be absolute or relative to the current directory.
152151

153152
| _(none)_
153+
| Specific directory (for example, `/var/log`)
154+
| Writes `spring.log` to the directory specified by `logging.file.path`.
155+
The directory can be absolute or relative to the current directory.
156+
157+
| Specific file
154158
| Specific directory
155-
| `/var/log`
156-
| Writes `spring.log` to the specified directory.
157-
Names can be an exact location or relative to the current directory.
159+
| Writes to the location specified by `logging.file.name` and ignores `logging.file.path`.
160+
The location can be absolute or relative to the current directory.
158161
|===
159162

160163
Log files rotate when they reach 10 MB and, as with console output, `ERROR`-level, `WARN`-level, and `INFO`-level messages are logged by default.

0 commit comments

Comments
 (0)