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

Added loggers for App Engine flexible environment. #28

Merged
merged 1 commit into from
Apr 3, 2016

Conversation

tmatsuo
Copy link
Contributor

@tmatsuo tmatsuo commented Apr 2, 2016

Fixes #9

This handler will format the logging message into a json format for a better presentation on the Cloud logging UI, in particular, with this format, you can filter the logs by severity, and also you should be able to bundle logs in a single request (unfortunately it doesn't work for me yet).

Downside is this PR adds monolog/monolog dependency. If you don't like big dependencies, please let me know. Potentially we can put these loggers in a different repo.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 2, 2016
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not.
* @param int|null $filePermission Optional file permissions (default (0640) are only for owner read/write).
* @param Boolean $useLocking Try to lock log file before doing any writes.
* @param resource|string $stream

This comment was marked as spam.

@dwsupplee
Copy link
Contributor

This looks good to me! Eventually we will be adding support for the logging API - I'm thinking once we get there we would use the namespace 'Logging' to keep consistent with the name of the service.

What are your thoughts on that, do you think a 'Logger' and 'Logging' namespace would make sense, or could we house them under one?

@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 2, 2016

@dwsupplee First I have addressed your comments in the second commit. Yes, logging API library code should be under Logging and I would rather separate them. Logging is the client lib for accessing Logging API, and Logger is for utilities for better user-land logging.

WDYT?

@dwsupplee
Copy link
Contributor

That makes sense, sounds like it can work well to me

@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 3, 2016

I just squashed the commits.

@dwsupplee dwsupplee merged commit fc0014d into googleapis:master Apr 3, 2016
@cedricziel
Copy link
Contributor

Can we have a tag for this?

@dwsupplee
Copy link
Contributor

@cedricziel all set

@@ -26,6 +26,7 @@
"google/auth": "0.7",
"guzzlehttp/guzzle": "~5.2|~6.0",
"guzzlehttp/psr7": "1.2.*",
"monolog/monolog": "~1",

This comment was marked as spam.

@tmatsuo tmatsuo deleted the gaeflex-logger branch April 24, 2017 22:55
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.

5 participants