Skip to content

Commit a9beb04

Browse files
chore(logging): remove obsolete region tags (GoogleCloudPlatform#1736)
1 parent 125cffa commit a9beb04

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

appengine/flexible/logging/app.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
*/
1717

1818
# [START logging_creating_psr3_logger_import]
19-
# [START creating_psr3_logger_import]
2019
use Google\Cloud\Logging\LoggingClient;
21-
# [END creating_psr3_logger_import]
2220
# [END logging_creating_psr3_logger_import]
2321
use Psr\Http\Message\ServerRequestInterface as Request;
2422
use Psr\Http\Message\ResponseInterface as Response;
@@ -61,12 +59,10 @@
6159
parse_str((string) $request->getBody(), $postData);
6260
# [START gae_flex_configure_logging]
6361
# [START logging_creating_psr3_logger]
64-
# [START creating_psr3_logger]
6562
$logging = new LoggingClient([
6663
'projectId' => $projectId
6764
]);
6865
$logger = $logging->psrLogger('app');
69-
# [END creating_psr3_logger]
7066
# [END logging_creating_psr3_logger]
7167
$logger->notice($postData['text'] ?? '');
7268
# [END gae_flex_configure_logging]
@@ -78,15 +74,11 @@
7874
$app->get('/async_log', function (Request $request, Response $response) use ($projectId) {
7975
$token = $request->getUri()->getQuery('token');
8076
# [START logging_enabling_psr3_batch]
81-
# [START enabling_batch]
8277
$logger = LoggingClient::psrBatchLogger('app');
83-
# [END enabling_batch]
8478
# [END logging_enabling_psr3_batch]
8579
# [START logging_using_psr3_logger]
86-
# [START using_the_logger]
8780
$logger->info('Hello World');
8881
$logger->error('Oh no');
89-
# [END using_the_logger]
9082
# [END logging_using_psr3_logger]
9183
$logger->info("Token: $token");
9284
$response->getBody()->write('Sent some logs');

0 commit comments

Comments
 (0)