[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Vinay Sajip

Vinay Sajip added the comment:

> However, if you still think that this is not, what the logging library is 
> meant for, I'd appreciate to know.

Confirmed. I would advise against using logger names in this way.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Richard Neumann

Changes by Richard Neumann :


Added file: http://bugs.python.org/file42827/logger.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Richard Neumann

Changes by Richard Neumann :


Removed file: http://bugs.python.org/file42825/logger.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Richard Neumann

Richard Neumann added the comment:

Added proposed patch

--
keywords: +patch
Added file: http://bugs.python.org/file42825/logger.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Richard Neumann

Richard Neumann added the comment:

PS: @vinay.sajip

You do realize that I want this argument to be optional and to retain '.' as 
default setting in order to keep the current behaviour?!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Richard Neumann

Richard Neumann added the comment:

I am using loggers and sub-loggers (getChild()) in classes, which contain 
sub-classes, wich contain sub-sub-classes and so on for complex data processing.
Hence I was using the logging library with sub-loggers to see in which of the 
(sub-)classes things happen.
Most classes are, however, instanced for different configuration and are 
represented by strings like {instance_config}@{class_name} where 
{instance_config} often contains dots as separators for IDs.
Example:

INFO1000@TerminalsSyncer:   Aggregating customer data: 
1031002@Facebook
INFO1000@TerminalsSyncer:   Aggregating virtual data: 
v60.1031002@Config
INFO1000@TerminalsSyncer:   Aggregating virtual data: 
v60.1031002@Presentation
WARNING 1000@TerminalsSyncer->1.1000@TerminalSyncer:Terminal 1.1000 is 
offline


However, if you still think that this is not, what the logging library is meant 
for, I'd appreciate to know.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-12 Thread Vinay Sajip

Vinay Sajip added the comment:

This is a change with wide-ranging ramifications. I don't propose to do this, 
as the use of '.' as a logging separator mirrors the separator used in the 
Python package namespace.

Logger names are supposed to indicate the "where" of a logging event - nothing 
more.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-11 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +vinay.sajip
versions: +Python 3.6 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26999] Add child separator keyword to logging.basicConfig and use it in Logger.getChild()

2016-05-11 Thread Richard Neumann

Changes by Richard Neumann :


--
title: Add child seperator keyword to logging.basicConfig and use it in 
Logger.getChild() -> Add child separator keyword to logging.basicConfig and use 
it in Logger.getChild()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com