Skip to content

Commit 36fd71b

Browse files
SurferJeffAtGooglebshaffer
authored andcommitted
Update logging doc tags. (GoogleCloudPlatform#675)
1 parent db02acd commit 36fd71b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

logging/src/log_entry_functions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// [END logging_use]
2525

26-
// [START write_log]
26+
// [START logging_write_log_entry]
2727
/** Write a log message via the Stackdriver Logging API.
2828
*
2929
* @param string $projectId The Google project ID.
@@ -45,9 +45,9 @@ function write_log($projectId, $loggerName, $message)
4545
$logger->write($entry);
4646
printf("Wrote a log to a logger '%s'." . PHP_EOL, $loggerName);
4747
}
48-
// [END write_log]
48+
// [END logging_write_log_entry]
4949

50-
// [START list_entries]
50+
// [START logging_list_log_entries]
5151
/** Return an iterator for listing log entries.
5252
*
5353
* @param string $projectId The Google project ID.
@@ -85,9 +85,9 @@ function list_entries($projectId, $loggerName)
8585
printf("%s : %s" . PHP_EOL, $entryInfo['timestamp'], $entryText);
8686
}
8787
}
88-
// [END list_entries]
88+
// [END logging_list_log_entries]
8989

90-
// [START delete_logger]
90+
// [START logging_delete_log]
9191
/** Delete a logger and all its entries.
9292
*
9393
* @param string $projectId The Google project ID.
@@ -100,4 +100,4 @@ function delete_logger($projectId, $loggerName)
100100
$logger->delete();
101101
printf("Deleted a logger '%s'." . PHP_EOL, $loggerName);
102102
}
103-
// [END delete_logger]
103+
// [END logging_delete_log]

logging/src/sink_functions.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// [END logging_use]
2525

26-
// [START create_sink]
26+
// [START logging_create_sink]
2727
/** Create a log sink.
2828
*
2929
* @param string $projectId The Google project ID.
@@ -41,9 +41,9 @@ function create_sink($projectId, $sinkName, $destination, $filterString)
4141
);
4242
printf("Created a sink '%s'." . PHP_EOL, $sinkName);
4343
}
44-
// [END create_sink]
44+
// [END logging_create_sink]
4545

46-
// [START delete_sink]
46+
// [START logging_delete_sink]
4747
/** Delete a log sink.
4848
*
4949
* @param string $projectId The Google project ID.
@@ -55,9 +55,9 @@ function delete_sink($projectId, $sinkName)
5555
$logging->sink($sinkName)->delete();
5656
printf("Deleted a sink '%s'." . PHP_EOL, $sinkName);
5757
}
58-
// [END delete_sink]
58+
// [END logging_delete_sink]
5959

60-
// [START list_sinks]
60+
// [START logging_list_sinks]
6161
/**
6262
* List log sinks.
6363
*
@@ -76,10 +76,10 @@ function list_sinks($projectId)
7676
print PHP_EOL;
7777
}
7878
}
79-
// [END list_sinks]
79+
// [END logging_list_sinks]
8080

8181

82-
// [START update_sink]
82+
// [START logging_update_sink]
8383
/**
8484
* Update a log sink.
8585
*
@@ -94,4 +94,4 @@ function update_sink($projectId, $sinkName, $filterString)
9494
$sink->update(['filter' => $filterString]);
9595
printf("Updated a sink '%s'." . PHP_EOL, $sinkName);
9696
}
97-
// [END update_sink]
97+
// [END logging_update_sink]

0 commit comments

Comments
 (0)