googleapis/google-cloud-php-logging - GitHub
文章推薦指數: 80 %
Contribute to googleapis/google-cloud-php-logging development by creating an account on GitHub. Skiptocontent {{message}} googleapis / google-cloud-php-logging Public Notifications Fork 8 Star 28 Apache-2.0License 28 stars 8 forks Star Notifications Code Pullrequests 2 Actions Projects 0 Wiki Security Insights More Code Pullrequests Actions Projects Wiki Security Insights master Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default 4 branches 65 tags Code Latestcommit Gitstats 118 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime .github metadata/V2 src tests .gitattributes .repo-metadata.json CONTRIBUTING.md LICENSE README.md VERSION composer.json phpunit-snippets.xml.dist phpunit-system.xml.dist phpunit.xml.dist synth.metadata synth.py Viewcode StackdriverLoggingforPHP Installation Authentication Sample Version NextSteps README.md StackdriverLoggingforPHP IdiomaticPHPclientforStackdriverLogging. APIdocumentation NOTE:ThisrepositoryispartofGoogleCloudPHP.Any supportrequests,bugreports,ordevelopmentcontributionsshouldbedirectedto thatproject. Allowsyoutostore,search,analyze,monitor,andalertonlogdataandeventsfromGoogleCloudPlatformandAmazon WebServices. Installation Tobegin,installthepreferreddependencymanagerforPHP,Composer. Nowtoinstalljustthiscomponent: $composerrequiregoogle/cloud-logging Ortoinstalltheentiresuiteofcomponentsatonce: $composerrequiregoogle/cloud ThiscomponentsupportsbothRESToverHTTP/1.1andgRPC.InordertotakeadvantageofthebenefitsofferedbygRPC(suchasstreamingmethods) pleaseseeourgRPCinstallationguide. Authentication PleaseseeourAuthenticationguideformoreinformation onauthenticatingyourclient.Onceauthenticated,you'llbereadytostartmakingrequests. Sample require'vendor/autoload.php'; useGoogle\Cloud\Logging\LoggingClient; $logging=newLoggingClient(); //Getaloggerinstance. $logger=$logging->logger('my_log'); //Writealogentry. $logger->write('mymessage'); //Listlogentriesfromaspecificlog. $entries=$logging->entries([ 'filter'=>'logName=projects/my_project/logs/my_log' ]); foreach($entriesas$entry){ echo$entry->info()['textPayload']."\n"; } Version ThiscomponentisconsideredGA(generallyavailable).Assuch,itwillnotintroducebackwards-incompatiblechangesin anyminororpatchreleases.Wewilladdressissuesandrequestswiththehighestpriority. NextSteps Understandtheofficialdocumentation. Takealookatin-depthusagesamples. About Nodescription,website,ortopicsprovided. Resources Readme License Apache-2.0License Codeofconduct Codeofconduct Stars 28 stars Watchers 56 watching Forks 8 forks Releases 65 google/cloud-loggingv1.22.2 Latest Oct20,2021 +64releases Packages0 Nopackagespublished Contributors14 +3contributors Languages PHP 99.3% Python 0.7% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.
延伸文章資訊
- 1GCP 就該這樣用!Google Cloud Audit Logging 的最佳實踐
Audit Logging 主要功能與關鍵實踐介紹身為一位稽核人員,您可能要花費許多時間檢閱log。Goo … Continue reading "GCP 就該這樣用!
- 2Stackdriver Logging 的根本應用 - Medium
Stackdriver Logging 是Google Cloud Platform (GCP) Stackdriver 套裝產品的一部分。 它包含紀錄的儲存,一個使用者介面名為Logs Vie...
- 3googleapis/google-cloud-php-logging - GitHub
Contribute to googleapis/google-cloud-php-logging development by creating an account on GitHub.
- 4Cloud Logging documentation
- 5Cloud Logging
Cloud Logging receives log entries through the Cloud Logging API where they pass through the Log ...