-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix job error handling & Allow programmatically activating loggers #8
- Loading branch information
Showing
6 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ Harmony Endpoint Management SDK uses the official python logger package for logg | |
|
||
There are 3 loggers, for general info, errors and to inspect network. | ||
|
||
As default they will be disabled, in order to enable logging, set to the `HARMONY_ENDPOINT_SDK_LOGGER` environment variable the following string: | ||
As default they will be disabled, in order to enable logging, set to the `HARMONY_ENDPOINT_SDK_LOGGER` environment variable the following string before loading the SDK: | ||
```bash | ||
HARMONY_ENDPOINT_SDK_LOGGER="*" | ||
``` | ||
|
@@ -174,6 +174,16 @@ And for a specific/s logger set the logger name followed by a command as followi | |
HARMONY_ENDPOINT_SDK_LOGGER="info,error,network" | ||
``` | ||
|
||
or activate logger programmatically using SDK methods: | ||
```python | ||
from chkp_harmony_endpoint_management_sdk import activate_all_loggers, activate_info_logger, activate_error_logger, activate_network_logger | ||
... | ||
activate_all_loggers() # Will activate all logger | ||
activate_info_logger() # Will activate the info logger only | ||
activate_error_logger() # Will activate the error logger only | ||
activate_network_logger() # Will activate the network logger only | ||
``` | ||
|
||
## 🐞 Report Bug | ||
|
||
In case of an issue or a bug found in the SDK, please open an [issue](https://github.com/CheckPointSW/harmony-endpoint-management-py-sdk/issues) or report to us [Check Point Software Technologies Ltd](mailto:[email protected]). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters