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

Update metadata formatting for readability #163

Closed
wants to merge 1 commit into from
Closed

Update metadata formatting for readability #163

wants to merge 1 commit into from

Conversation

Mordil
Copy link

@Mordil Mordil commented Sep 19, 2020

Motivation:

For packages that generate logs and use them as part of the development process,
it is beneficial to be able to read through logs without having to write custom
log handlers or pull in a dependency for formatting only at dev time.

Modifications:

  • Change: The format of StreamLogHandler to output metadata on newlines with tab indentation

Result:

Package authors will have an easier time debugging their applications without boilerplate code or dependencies.

This resolves #162

Motivation:

For packages that generate logs and use them as part of the development process,
it is beneficial to be able to read through logs without having to write custom
log handlers or pull in a dependency for formatting only at dev time.

Modifications:

- Change: The format of `StreamLogHandler` to output metadata on newlines with tab indentation

Result:

Package authors will have an easier time debugging their applications without boilerplate code or dependencies.

This resolves #162
@swift-server-bot
Copy link

Can one of the admins verify this patch?

5 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@ktoso
Copy link
Member

ktoso commented Sep 20, 2020

@swift-server-bot add to whitelist

@ktoso
Copy link
Member

ktoso commented Sep 20, 2020

Moved to: #162 to keep the general discussion in one place.

@Mordil
Copy link
Author

Mordil commented Sep 20, 2020

@ktoso Do we want to move discussion to the issue #162?

@ktoso
Copy link
Member

ktoso commented Sep 20, 2020

Sure, I'll move my comment

@ktoso ktoso self-assigned this Sep 20, 2020
@ktoso
Copy link
Member

ktoso commented Sep 24, 2020

Following the discussion in the issue #162 I'm sorry but we won't be accepting such human-readable improvements into swift-log itself.

Let's work on a separate package that can handle this though, happy to help!

@ktoso ktoso closed this Sep 24, 2020
@Mordil Mordil deleted the nh-slightly-better-formatting branch September 24, 2020 03:20
@Mordil
Copy link
Author

Mordil commented Sep 24, 2020

Understandable! No hurt feelings here

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

Successfully merging this pull request may close these issues.

Slightly better default formatting for logs
3 participants