python / cpython

The Python programming language
https://www.python.org/
Other
59.69k stars 28.93k forks source link

Integrates log4p #34553

Closed 44fbef2d-370c-4880-95ef-bd26c17f411a closed 22 years ago

44fbef2d-370c-4880-95ef-bd26c17f411a commented 22 years ago
BPO 428289
Nosy @loewis, @freddrake

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: ```python assignee = None closed_at = created_at = labels = ['interpreter-core', 'type-feature'] title = 'Integrates log4p' updated_at = user = 'https://bugs.python.org/jkuan' ``` bugs.python.org fields: ```python activity = actor = 'fdrake' assignee = 'none' closed = True closed_date = None closer = None components = ['Interpreter Core'] creation = creator = 'jkuan' dependencies = [] files = [] hgrepos = [] issue_num = 428289 keywords = [] message_count = 3.0 messages = ['4892', '4893', '4894'] nosy_count = 3.0 nosy_names = ['loewis', 'fdrake', 'jkuan'] pr_nums = [] priority = 'normal' resolution = 'rejected' stage = None status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue428289' versions = [] ```

44fbef2d-370c-4880-95ef-bd26c17f411a commented 22 years ago

I have read about log4j which is great for developers. Also notice that has been ported to python, log4p, log4p.sourceforge.net. I personally think this will be one of the great tools if it integrates into python core. At least more open source python developer will definitely want to use it, rather than they have to maintain their own log4p. Now python has a module that provides auto test framework, I deeply think the next thing should be logging.

Thanks Joe

61337411-43fc-4a9c-b8d5-4060aede66d0 commented 22 years ago

Logged In: YES user_id=21627

I hope this won't integrated into Python. Mirroring the Java package structure is not a good idea (from java.text import DateFormat???)

Instead, it seems that all the underlying support libraries are already there: you have the syslog module on Unix, and the win32evtlog on Windows. It might be that some universal wrapper is desirable - but log4p currently does not look like material for the Python core.

freddrake commented 22 years ago

Logged In: YES user_id=3066

It is not clear that additional logging facilities are needed, nor that a common implementation for logging really makes sense. Experience says a single implementation typically does not make sense, and different applications have widely varying requirements of a logging facility.