googleapis/google-cloud-php-logging - GitHub

文章推薦指數: 80 %
投票人數:10人

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.



請為這篇文章評分?