-
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.
- Loading branch information
Showing
29 changed files
with
414 additions
and
114 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 |
---|---|---|
|
@@ -70,3 +70,6 @@ docs/api | |
|
||
# jupyter files | ||
.ipynb_checkpoints/ | ||
|
||
# | ||
junit.xml |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ dependencies: | |
- numpy | ||
- pandas | ||
- matplotlib | ||
- scipy | ||
- scipy>=0.19 | ||
- cython | ||
- pillow | ||
- pytables | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
|
||
install | ||
user_guide | ||
logging | ||
examples | ||
api | ||
contribute | ||
|
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,49 @@ | ||
Logging | ||
======= | ||
|
||
|
||
.. contents:: :local: | ||
|
||
|
||
Introduction | ||
------------ | ||
KM3Pipe uses a module based logging system which can individually be configured to | ||
provide information needed to understand the underlying mechanisms. | ||
|
||
You can also easily create your own logger. | ||
|
||
|
||
Accessing a Logger | ||
------------------ | ||
To access a modules logger, you need to:: | ||
|
||
from km3pipe.logger import logging | ||
log = logging.getLogger("module.path") | ||
|
||
where ``module.path`` is the Python import path of the module, like ``km3pipe.core``. | ||
|
||
To set a desired logging level, use the keywords ``DEBUG``, ``INFO``, ``WARNING``, | ||
``ERROR`` or ``CRITICAL``. For example:: | ||
|
||
log.setLevel("DEBUG") | ||
|
||
Creating your own Logger | ||
------------------------ | ||
|
||
To create your own logger, use the same procedure as described above:: | ||
|
||
from km3pipe.logger import logging | ||
log = logging.getLogger("your.desired.logger.name") | ||
|
||
After that, you can use it to log anywhere:: | ||
|
||
log.debug("A debug message") | ||
log.info("An info message") | ||
log.warn("A warning") | ||
log.error("An error") | ||
log.critical("A critical think") | ||
|
||
and set its debug level:: | ||
|
||
log.setLevel("WARN") | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
KM3Pipe 6.6.6 | ||
KM3Pipe 6.7.0 | ||
============= |
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
Oops, something went wrong.