-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
510 additions
and
355 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
:py:mod:`libranet_logging.utils` | ||
================================ | ||
|
||
.. py:module:: libranet_logging.utils | ||
.. autoapi-nested-parse:: | ||
|
||
libranet_logging.utils | ||
|
||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
|
||
Functions | ||
~~~~~~~~~ | ||
|
||
.. autoapisummary:: | ||
|
||
libranet_logging.utils.print_tree | ||
libranet_logging.utils.print_loggers | ||
libranet_logging.utils.strtobool | ||
libranet_logging.utils.is_interactive_shell | ||
libranet_logging.utils.ensure_dir | ||
|
||
|
||
|
||
.. py:function:: print_tree() | ||
Returns: | ||
|
||
|
||
|
||
.. py:function:: print_loggers() | ||
Returns: | ||
|
||
|
||
|
||
.. py:function:: strtobool(val) | ||
Convert a string representation of truth to true (1) or false (0). | ||
|
||
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values | ||
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if | ||
'val' is anything else. | ||
|
||
|
||
.. py:function:: is_interactive_shell() | ||
Decide if this process is run in an interactive shell or not. | ||
|
||
If environment-variable $TERM is present, | ||
we are running this code in a interactive shell, | ||
else we are run from cron or called via nrpe as a nagios-check. | ||
|
||
Returns: boolean | ||
|
||
|
||
|
||
.. py:function:: ensure_dir(required_dir) | ||
Ensure the required directory exists. | ||
|
||
|
Oops, something went wrong.