Skip to content

logging.config: '.' (dot) as a key is not documented #84095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
okapies mannequin opened this issue Mar 9, 2020 · 1 comment
Closed

logging.config: '.' (dot) as a key is not documented #84095

okapies mannequin opened this issue Mar 9, 2020 · 1 comment
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@okapies
Copy link
Mannequin

okapies mannequin commented Mar 9, 2020

BPO 39914
Nosy @vsajip, @okapies

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2020-03-09.15:59:34.252>
labels = ['3.8', 'type-feature', '3.7', '3.9', 'docs']
title = "logging.config: '.' (dot) as a key is not documented"
updated_at = <Date 2020-03-09.16:02:04.687>
user = 'https://github.com/okapies'

bugs.python.org fields:

activity = <Date 2020-03-09.16:02:04.687>
actor = 'xtreak'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2020-03-09.15:59:34.252>
creator = 'Yuta Okamoto'
dependencies = []
files = []
hgrepos = []
issue_num = 39914
keywords = []
message_count = 1.0
messages = ['363744']
nosy_count = 3.0
nosy_names = ['vinay.sajip', 'docs@python', 'Yuta Okamoto']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue39914'
versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']

@okapies
Copy link
Mannequin Author

okapies mannequin commented Mar 9, 2020

I noticed that Configurators in logging.config module accepts '.' (dot) as a key to fill attributes for filters, formatters, and handlers directly like the following:

handlers:
syslog:
class: logging.handlers.SysLogHandler
.:
ident: 'app-name: '

props = config.pop('.', None)

But it seems this functionality is not documented in https://docs.python.org/3/library/logging.config.html

@okapies okapies mannequin added 3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes labels Mar 9, 2020
@okapies okapies mannequin assigned docspython Mar 9, 2020
@okapies okapies mannequin added 3.8 (EOL) end of life docs Documentation in the Doc dir 3.9 only security fixes type-feature A feature request or enhancement labels Mar 9, 2020
@okapies okapies mannequin assigned docspython Mar 9, 2020
@okapies okapies mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Mar 9, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 5, 2022
vsajip added a commit to vsajip/cpython that referenced this issue Sep 5, 2022
@vsajip vsajip closed this as completed Sep 5, 2022
@vsajip vsajip moved this to Done in Logging issues 🪵 Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
Development

No branches or pull requests

1 participant