Skip to content

Commit 090e8fd

Browse files
committed
📝 Add logging section from Python4DataScience
1 parent 8c5333c commit 090e8fd

File tree

8 files changed

+975
-0
lines changed

8 files changed

+975
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25+
- uses: pandoc/actions/setup@v1
2526
- uses: actions/setup-python@v5
2627
with:
2728
# Keep in sync with .readthedocs.yaml

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
uses: actions/checkout@v4
3333
- name: Install packages
3434
run: sudo apt install plantuml
35+
- name: Setup pandoc
36+
uses: pandoc/actions/setup@v1
3537
- name: Setup python
3638
uses: actions/setup-python@v5
3739
with:

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
# Add any Sphinx extension module names here, as strings. They can be
4040
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom ones.
4141
extensions = [
42+
"nbsphinx",
4243
"pygments_pytest",
4344
"sphinx.ext.autodoc",
4445
"sphinx.ext.viewcode",

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Follow us on…
119119
packs/index
120120
oop/index
121121
save-data/index
122+
logging/index
122123
test/index
123124
document/index
124125
appendix/index

docs/logging/development.ini

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
; SPDX-FileCopyrightText: 2021 Veit Schiele
2+
;
3+
; SPDX-License-Identifier: BSD-3-Clause
4+
5+
[loggers]
6+
keys=root
7+
8+
[handlers]
9+
keys=stream_handler
10+
11+
[formatters]
12+
keys=formatter
13+
14+
[logger_root]
15+
level=DEBUG
16+
handlers=stream_handler
17+
18+
[handler_stream_handler]
19+
class=StreamHandler
20+
level=DEBUG
21+
formatter=formatter
22+
args=(sys.stderr,)
23+
24+
[formatter_formatter]
25+
format=%(asctime)s %(name)-12s %(levelname)-8s %(message)s

0 commit comments

Comments
 (0)