Skip to content

Commit 151426e

Browse files
authored
chore: Add mention about setting projectId and resource (#13)
1 parent 441f110 commit 151426e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ logger.info('hello world')
7070
logger.error({ oops: 'hello!' }, 'error')
7171
```
7272

73+
**NOTE**: The `projectId` string and `resource` object on the Logging instance are detected and set automatically 🎉
74+
7375
**Configuration**
7476
`Cloud-Pine` supports the following configuration:
7577

@@ -111,17 +113,17 @@ Usage: cat log | cloud-pine --projectid someprojectid -l something=else -l servi
111113
112114
-n | --name Log Name. Default to Cloud_Pine
113115
114-
-s | --sync Cloud Logging Mode. Sync will print to `stdout`
116+
-s | --sync Cloud Logging Mode. Sync will print to `stdout`
115117
meanwhile async will forward logs to Cloud Logging.
116118
Default to true.
117119
118-
-p | --projectid Google Cloud Project ID. Default to automatic
119-
detected resource or
120+
-p | --projectid Google Cloud Project ID. Default to automatic
121+
detected resource or
120122
`GOOGLE_APPLICATION_CREDENTIALS`
121123
122124
-k | --key Path to key file
123125
124-
-l | --labels Custom labels to be attached to the logging labels.
126+
-l | --labels Custom labels to be attached to the logging labels.
125127
Should be in the format `label=value`.
126128
Can be used one or more times.
127129
@@ -133,7 +135,7 @@ Usage: cat log | cloud-pine --projectid someprojectid -l something=else -l servi
133135
Follows same pattern as `--labels`.
134136
135137
-i | --skip-init Skips identification of monitored resource, which
136-
will infer things like `project-id` and Monitored
138+
will infer things like `project-id` and Monitored
137139
Resource settings. Default to false.
138140
```
139141

0 commit comments

Comments
 (0)