You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Messages of a given severity are shown not only in the console for that severity but also for the higher severity. For example, the severity level `warning` outputs severity errors for`error` and `warning` to the console.
243
242
244
-
### Optional use of the Google* logging library (glog*)
243
+
### Optional use of the Google logging library (glog)
245
244
246
-
The dpctl error handler for libsyclinterface can be optionally configured to use [glog*](https://github.com/google/glog).
245
+
The dpctl error handler for libsyclinterface can be optionally configured to use [glog](https://github.com/google/glog).
247
246
248
-
To use glog*, complete the following steps:
247
+
To use glog, complete the following steps:
249
248
250
-
1. Install glog* package of the latest version
249
+
1. Install glog package of the latest version
251
250
252
251
```bash
253
252
conda install glog
254
253
```
255
-
2. Build dpctl with the glog* support
254
+
2. Build dpctl with the glog support
256
255
257
256
```bash
258
257
python scripts/build_locally.py --oneapi --glog
259
258
```
260
259
261
-
3. Use the `dpctl._diagnostics.syclinterface_diagnostics(verbosity="warning", log_dir=None)` context manager to switch library diagnostics on for a block of a Python* code.
260
+
1. Use the `dpctl._diagnostics.syclinterface_diagnostics(verbosity="warning", log_dir=None)` context manager to switch library diagnostics on for a block of a Python code.
262
261
Use `DPCTLService_InitLogger` and `DPCTLService_ShutdownLogger` library C functions during library development to initialize Google's logging library and de-initialize accordingly:
263
262
264
263
```python
@@ -278,4 +277,4 @@ Where:
278
277
- `*log_dir` - a directory path for writing log files. Specifying `NULL` results in logging to ``std::cerr``.
279
278
280
279
> **_NOTE:_**
281
-
> If `InitGoogleLogging` is not called before the first use of the glog*, the library self-initializes to the `logtostderr` mode, and log files are not generated.
280
+
> If `InitGoogleLogging` is not called before the first use of the glog, the library self-initializes to the `logtostderr` mode, and log files are not generated.
0 commit comments