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

Streamlined format #64

Open
jglick opened this issue Mar 1, 2024 · 2 comments
Open

Streamlined format #64

jglick opened this issue Mar 1, 2024 · 2 comments

Comments

@jglick
Copy link
Member

jglick commented Mar 1, 2024

SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSZ");
is too verbose (+0000). Prefer

DateTimeFormatter.ISO_INSTANT.format(Instant.now().truncatedTo(ChronoUnit.MILLIS))

builder.append(" [id=").append(record.getThreadID()).append("]");
is not obviously about threads. Use an emoji instead? 🧵 for example.

builder.append("\t").append(record.getLevel().getName()).append("\t");
could also be streamlined to use ℹ️ or ⚠️ etc.

@daniel-beck
Copy link
Member

Can we rely on everything that is used to view log files to support emojis without screwing them up?

@jglick
Copy link
Member Author

jglick commented Sep 11, 2024

Perhaps not, but an ASCII-only mode could be selected with an environment variable or something.

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

2 participants