Comments (8)
Are you missing _NAME
suffix?
from spring-boot.
That looks like an oversight in the documentation to me. Can you try with LOG_FILE_NAME
as @quaff suggests?
from spring-boot.
I think the documentation might be a little confusing in this area. The logging.file.name
property is transferred to a system property named LOG_FILE
so that it can be referenced in logging configuration files (e.g. logback.xml
). You can find the code in the LogFile
class.
It looks like the transfer happens regardless of any existing system property.
You could try setting a LOGGING_FILE_NAME
environment variable. I think that will map to logging.file.name
and then get transferred to LOG_FILE
and be picked up by Logback/Log4j.
from spring-boot.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
from spring-boot.
Thanks for the input, I verified the suggested solution using LOGGING_FILE_NAME
, this works and is fine for me.
from spring-boot.
Let's see if we can clarify the documentation. The table shows how properties in the Spring environment are transferred to system properties but, judging by this issue, it's easy to misinterpret the "System Property" column as environment variables as they're in UPPER_CASE
.
from spring-boot.
I am willing to take this and work on it. Given that there is a confusion between System property and the Environment variables, would it be good if i add a column with title Environment variable and write the env variables that need to be set for each property in the table?
from spring-boot.
Thanks for the offer, @vivganes. I'm not really sure how best to fix this. Unfortunately, I don't think another column will help overall. Due to the limited width in the documentation, I think an extra column will make the table harder to read.
from spring-boot.
Related Issues (20)
- Suggest testAndDevelopmentOnly configuration when using Docker Compose support in tests
- ServiceLevelObjectiveBoundary properties cannot be bound in a native image application
- ServiceLevelObjectiveBoundary properties cannot be bound in a native image application
- Runtime hint registration for property binding should not fail when parameter information is unavailable
- Runtime hint registration for property binding should not fail when parameter information is unavailable
- Bump gradle/actions from 3.3.0 to 3.3.1
- Bump gradle/actions from 3.3.0 to 3.3.1
- Consider delaying Jackson 2.17.0 upgrade in Spring Boot 3.3.0 HOT 2
- Upgrade to logback 1.5.6 (or 1.5.5) breaks <springProperty> when used with <include> HOT 2
- PulsarPropertiesMapper.getAuthenticationParamsJson HOT 6
- Spring-Boot 3.2 introduces permission issues in container images HOT 1
- Spring boot 3.2.5 @Preauthorize gives forbidden HOT 1
- Native image build fails with Maven and Java 21 HOT 1
- Remove unnecessary nesting of calls to String.format
- Remove unnecessary nesting of calls to String.format
- SpringBootMockMvcBuilderCustomizer can crash cryptically while collecting data that it would have discarded anyway
- CookieSameSiteSupplier influences session cookie
- Migrating from SpringBoot 2.7.1 to 3.2.3 but Lombok @SuperBuilder is not working getting error: cannot find symbol HOT 1
- Clarify docs around spring.jpa.generate-ddl
- FileSystemProviders from jar-files are not found when running as executable jar generated via spring-boot-maven-plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.