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 logName option #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lastwisher
Copy link

@Lastwisher Lastwisher commented Feb 17, 2020

Hello,
Thanks for this package, very simple and useful. I just made one line of insertion to your code.

As explained at resource
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry

we have a option called "logName" i just added that option. This will allow us to write to diffrent files on log function.

Usage :

$context['stackdriver'] = [
    'logName' => 'projects/[projectIID]/logs/[LogName]'
];

Note ;
normally logname format is

projects/[projectIID]/logs/[LogName]

I can make a new pr that stores project id and fixes short format like

$context['stackdriver'] = [
    'logName' => '[LogName]'
];

Just want to get your opinion before i digg into more.

Thanks.

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.

1 participant