Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pattern cannot be displayed properly #835

Open
Cjsah opened this issue Jul 22, 2024 · 0 comments
Open

pattern cannot be displayed properly #835

Cjsah opened this issue Jul 22, 2024 · 0 comments

Comments

@Cjsah
Copy link

Cjsah commented Jul 22, 2024

my test statement:

    log.info("1")
    log.warn("1")
    log.error("1")

if i using pattern: %white([)%magenta(%d{yyyy-MM-dd HH:mm:ss,GMT+8}) %msg%n
the closing bracket after the time is cut off.
maybe the % in %magenta is escaped.

[%magenta(2024-07-22 10:37:37[%magenta(2024-07-22 10:37:37[%magenta(2024-07-22 10:37:37

but if I put a space before %magenta: %white([) %magenta(%d{yyyy-MM-dd HH:mm:ss,GMT+8}) %msg%n
its normal

[ 2024-07-22 10:40:12 1
[ 2024-07-22 10:40:12 1
[ 2024-07-22 10:40:12 1
  • logback verison: 1.5.6
@Cjsah Cjsah changed the title The % after the right bracket cannot match the variable pattern cannot be displayed properly Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant