@@ -32,7 +32,7 @@ class Logger(object):
32
32
:param client: A client which holds credentials and project configuration
33
33
for the logger (which requires a project).
34
34
35
- :type labels: dict or :class:`NoneType`
35
+ :type labels: dict
36
36
:param labels: (optional) mapping of default labels for entries written
37
37
via this logger.
38
38
"""
@@ -99,25 +99,25 @@ def _make_entry_resource(self, text=None, info=None, message=None,
99
99
100
100
Only one of ``text``, ``info``, or ``message`` should be passed.
101
101
102
- :type text: str or :class:`NoneType`
103
- :param text: text payload
102
+ :type text: str
103
+ :param text: (Optional) text payload
104
104
105
- :type info: dict or :class:`NoneType`
106
- :param info: struct payload
105
+ :type info: dict
106
+ :param info: (Optional) struct payload
107
107
108
108
:type message: Protobuf message or :class:`NoneType`
109
109
:param message: protobuf payload
110
110
111
- :type labels: dict or :class:`NoneType`
112
- :param labels: labels passed in to calling method.
111
+ :type labels: dict
112
+ :param labels: (Optional) labels passed in to calling method.
113
113
114
- :type insert_id: str or :class:`NoneType`
114
+ :type insert_id: str
115
115
:param insert_id: (optional) unique ID for log entry.
116
116
117
- :type severity: str or :class:`NoneType`
117
+ :type severity: str
118
118
:param severity: (optional) severity of event being logged.
119
119
120
- :type http_request: dict or :class:`NoneType`
120
+ :type http_request: dict
121
121
:param http_request: (optional) info about HTTP request associated with
122
122
the entry
123
123
@@ -172,16 +172,16 @@ def log_text(self, text, client=None, labels=None, insert_id=None,
172
172
:param client: the client to use. If not passed, falls back to the
173
173
``client`` stored on the current logger.
174
174
175
- :type labels: dict or :class:`NoneType`
175
+ :type labels: dict
176
176
:param labels: (optional) mapping of labels for the entry.
177
177
178
- :type insert_id: str or :class:`NoneType`
178
+ :type insert_id: str
179
179
:param insert_id: (optional) unique ID for log entry.
180
180
181
- :type severity: str or :class:`NoneType`
181
+ :type severity: str
182
182
:param severity: (optional) severity of event being logged.
183
183
184
- :type http_request: dict or :class:`NoneType`
184
+ :type http_request: dict
185
185
:param http_request: (optional) info about HTTP request associated with
186
186
the entry
187
187
"""
@@ -206,16 +206,16 @@ def log_struct(self, info, client=None, labels=None, insert_id=None,
206
206
:param client: the client to use. If not passed, falls back to the
207
207
``client`` stored on the current logger.
208
208
209
- :type labels: dict or :class:`NoneType`
209
+ :type labels: dict
210
210
:param labels: (optional) mapping of labels for the entry.
211
211
212
- :type insert_id: str or :class:`NoneType`
212
+ :type insert_id: str
213
213
:param insert_id: (optional) unique ID for log entry.
214
214
215
- :type severity: str or :class:`NoneType`
215
+ :type severity: str
216
216
:param severity: (optional) severity of event being logged.
217
217
218
- :type http_request: dict or :class:`NoneType`
218
+ :type http_request: dict
219
219
:param http_request: (optional) info about HTTP request associated with
220
220
the entry.
221
221
"""
@@ -240,16 +240,16 @@ def log_proto(self, message, client=None, labels=None, insert_id=None,
240
240
:param client: the client to use. If not passed, falls back to the
241
241
``client`` stored on the current logger.
242
242
243
- :type labels: dict or :class:`NoneType`
243
+ :type labels: dict
244
244
:param labels: (optional) mapping of labels for the entry.
245
245
246
- :type insert_id: str or :class:`NoneType`
246
+ :type insert_id: str
247
247
:param insert_id: (optional) unique ID for log entry.
248
248
249
- :type severity: str or :class:`NoneType`
249
+ :type severity: str
250
250
:param severity: (optional) severity of event being logged.
251
251
252
- :type http_request: dict or :class:`NoneType`
252
+ :type http_request: dict
253
253
:param http_request: (optional) info about HTTP request associated with
254
254
the entry.
255
255
"""
@@ -347,16 +347,16 @@ def log_text(self, text, labels=None, insert_id=None, severity=None,
347
347
:type text: str
348
348
:param text: the text entry
349
349
350
- :type labels: dict or :class:`NoneType`
350
+ :type labels: dict
351
351
:param labels: (optional) mapping of labels for the entry.
352
352
353
- :type insert_id: str or :class:`NoneType`
353
+ :type insert_id: str
354
354
:param insert_id: (optional) unique ID for log entry.
355
355
356
- :type severity: str or :class:`NoneType`
356
+ :type severity: str
357
357
:param severity: (optional) severity of event being logged.
358
358
359
- :type http_request: dict or :class:`NoneType`
359
+ :type http_request: dict
360
360
:param http_request: (optional) info about HTTP request associated with
361
361
the entry.
362
362
"""
@@ -370,16 +370,16 @@ def log_struct(self, info, labels=None, insert_id=None, severity=None,
370
370
:type info: dict
371
371
:param info: the struct entry
372
372
373
- :type labels: dict or :class:`NoneType`
373
+ :type labels: dict
374
374
:param labels: (optional) mapping of labels for the entry.
375
375
376
- :type insert_id: str or :class:`NoneType`
376
+ :type insert_id: str
377
377
:param insert_id: (optional) unique ID for log entry.
378
378
379
- :type severity: str or :class:`NoneType`
379
+ :type severity: str
380
380
:param severity: (optional) severity of event being logged.
381
381
382
- :type http_request: dict or :class:`NoneType`
382
+ :type http_request: dict
383
383
:param http_request: (optional) info about HTTP request associated with
384
384
the entry.
385
385
"""
@@ -393,16 +393,16 @@ def log_proto(self, message, labels=None, insert_id=None, severity=None,
393
393
:type message: protobuf message
394
394
:param message: the protobuf entry
395
395
396
- :type labels: dict or :class:`NoneType`
396
+ :type labels: dict
397
397
:param labels: (optional) mapping of labels for the entry.
398
398
399
- :type insert_id: str or :class:`NoneType`
399
+ :type insert_id: str
400
400
:param insert_id: (optional) unique ID for log entry.
401
401
402
- :type severity: str or :class:`NoneType`
402
+ :type severity: str
403
403
:param severity: (optional) severity of event being logged.
404
404
405
- :type http_request: dict or :class:`NoneType`
405
+ :type http_request: dict
406
406
:param http_request: (optional) info about HTTP request associated with
407
407
the entry.
408
408
"""
0 commit comments