Skip to content

Don't hardcode log suffix in JlineAutoConfiguration #220

@zebaslam

Description

@zebaslam

Seen in this line

Code from that area:

@Bean
public History history(LineReader lineReader, @Value("${spring.application.name:spring-shell}.log") String historyPath) {
	lineReader.setVariable(LineReader.HISTORY_FILE, Paths.get(historyPath));
	return new DefaultHistory(lineReader);
}

The suffix .log is hardcoded when the spring.application.name is provided not allowing the user to override this. If there is an alternative way of overriding this, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions