forked from exasol/bucketfs-utils-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation and release notes
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import logging | ||
from exasol.bucketfs import Service | ||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
# Advanced Logging | ||
import logging | ||
from exasol.bucketfs import Service | ||
|
||
# Attention: | ||
# It is essential to configure the root logger at the beginning of your script. | ||
# This ensures that log messages, including those from the bucketfs are handled correctly. | ||
# Without proper configuration, log messages might not appear as expected. | ||
logging.basicConfig(level=logging.INFO) | ||
|
||
# Explicityly Configure the bucketfs logger if you need to. | ||
# | ||
# 1. Get a reference to the bucketfs logger | ||
bucketfs_logger = logging.getLogger('exasol.bucketfs') | ||
|
||
# 2. Configure the bucketfs logger as needed | ||
# Note: | ||
# By default bucketfs logger is set to NOTSET (https://docs.python.org/3.11/library/logging.html#logging.NOTSET) | ||
# which should be sufficient in lots of cases where the root logger is configured approriately. | ||
bucketfs_logger.setLevel(logging.DEBUG) | ||
... |
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