Based on the provided configuration and your issue, it seems like there's a misunderstanding of how placeholders and default values work in Spring's configuration. The logs.path property doesn't have a default value assigned in the given configuration, which might be causing the issues in generating logs in undefined folders.
These lines are attempting to utilize the properties defined earlier. ${application.name} would default correctly to "springboot" if not specified. However, ${logs.path} could be undefined if logging.file.path is not provided.
This will ensure that if logging.file.path is not defined, it will fall back to /default/log/path.
Setting logging.file.path in Properties:
Ensure that you have set logging.file.path in your application properties file (e.g., application.properties or application.yml):
properties
logging.file.path=/specific/log/path
Handling Undefined Properties:
You can also add a conditional check to handle undefined properties gracefully if your logging configuration allows for scripting or placeholders that provide fallback values.
By adding a default value to logging.file.path, you ensure that logs.path is never undefined, avoiding the creation of log files in incorrect or unintended directories.