Skip to content

Commit

Permalink
📝 Add logging section from Python4DataScience
Browse files Browse the repository at this point in the history
  • Loading branch information
veit committed Dec 6, 2024
1 parent 8c5333c commit 090e8fd
Show file tree
Hide file tree
Showing 8 changed files with 975 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pandoc/actions/setup@v1
- uses: actions/setup-python@v5
with:
# Keep in sync with .readthedocs.yaml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
uses: actions/checkout@v4
- name: Install packages
run: sudo apt install plantuml
- name: Setup pandoc
uses: pandoc/actions/setup@v1
- name: Setup python
uses: actions/setup-python@v5
with:
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom ones.
extensions = [
"nbsphinx",
"pygments_pytest",
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Follow us on…
packs/index
oop/index
save-data/index
logging/index
test/index
document/index
appendix/index
Expand Down
25 changes: 25 additions & 0 deletions docs/logging/development.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
; SPDX-FileCopyrightText: 2021 Veit Schiele
;
; SPDX-License-Identifier: BSD-3-Clause

[loggers]
keys=root

[handlers]
keys=stream_handler

[formatters]
keys=formatter

[logger_root]
level=DEBUG
handlers=stream_handler

[handler_stream_handler]
class=StreamHandler
level=DEBUG
formatter=formatter
args=(sys.stderr,)

[formatter_formatter]
format=%(asctime)s %(name)-12s %(levelname)-8s %(message)s
Loading

0 comments on commit 090e8fd

Please sign in to comment.