We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943184d commit 11aa29bCopy full SHA for 11aa29b
logging/quickstart.php
@@ -30,19 +30,14 @@
30
'projectId' => $projectId
31
]);
32
33
-# The name of the log to write to
34
-$logName = 'my-log';
35
-
36
# Selects the log to write to
37
-$logger = $logging->logger($logName);
+$logger = $logging->logger('my-log');
38
39
# The data to log
40
$text = 'Hello, world!';
41
42
-# Creates the log entry
+# Creates and writes the log entry
43
$entry = $logger->entry($text);
44
45
-# Writes the log entry
46
$logger->write($entry);
47
48
echo 'Logged ' . $text;
0 commit comments