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

First prototype of a console formatter for Google Cloud Logging #5200

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

jskeet
Copy link
Collaborator

@jskeet jskeet commented Jul 23, 2020

The majority of this commit is a sample app, which can probably be removed later.

There's just one perfunctory test, and a lot more work to do thinking about exactly how we want the JSON to look - but it's a start.
(There's no hurry here, as we probably don't want to release anything before the ConsoleFormatter API goes GA anyway.)

Screenshots of a before/after:

Vanilla console logging:

before

With the console formatter:

after

The majority of this commit is a sample app, which can probably be removed later.

There's just one perfunctory test, and a lot more work to do thinking about exactly how we want the JSON to look - but it's a start.
(There's no hurry here, as we probably don't want to release anything before the ConsoleFormatter API goes GA anyway.)
@jskeet jskeet requested a review from a team as a code owner July 23, 2020 07:55
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 23, 2020
@amanda-tarafa
Copy link
Contributor

I'll take a look later today. It does look pretty good at first glance.

Copy link
Contributor

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is really good.

<TargetFrameworks>netstandard2.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>ConsoleFormatter for Google Cloud Logging.</Description>
<PackageTags>Logging;Stackdriver;ILogger;Console;Google;Cloud</PackageTags>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Stackdriver? Granted people might still be using that for looking libs up.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, that was the only reason for including it. We can remove all the Stackdriver tags from all packages in a couple of years when they're no longer useful at all.

@jskeet jskeet merged commit ab31999 into googleapis:master Jul 23, 2020
@jskeet jskeet deleted the logger-format branch July 23, 2020 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants