473,394 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Application logging to screen and file - any favorite modules (no luck on cheeseshop)

Hello, I am looking for a module which has
* log levels
* output to stdout and file (either/or based on config)
* nicely formatted log output (e.g., indentation when appropriate)

I tried to use cheeseshop to find such a module, but came up short. I
clicked on
Browse Tree -Software Development but then did not see a subcategory
for logging, so did not know where to look. I then typed log into the
search box, but that didn't really turn up the modules which had login
their description so I posted here.

Sep 23 '06 #1
6 1065
metaperl wrote:
Hello, I am looking for a module which has
* log levels
* output to stdout and file (either/or based on config)
* nicely formatted log output (e.g., indentation when appropriate)

I tried to use cheeseshop to find such a module, but came up short. I
clicked on
Browse Tree -Software Development but then did not see a subcategory
for logging, so did not know where to look. I then typed log into the
search box, but that didn't really turn up the modules which had login
their description so I posted here.
You should look in the standard library before hitting the Package Index.

http://www.python.org/doc/current/li...e-logging.html

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Sep 23 '06 #2
metaperl wrote:
Hello, I am looking for a module which has
* log levels
* output to stdout and file (either/or based on config)
* nicely formatted log output (e.g., indentation when appropriate)
Sorry for being nosey, but how'd you use indentation in a log?

Regards,
Björn

--
BOFH excuse #154:

You can tune a file system, but you can't tune a fish (from most
tunefs man pages)

Sep 23 '06 #3
At Saturday 23/9/2006 06:35, Bjoern Schliessmann wrote:
Hello, I am looking for a module which has
* log levels
* output to stdout and file (either/or based on config)
* nicely formatted log output (e.g., indentation when appropriate)

Sorry for being nosey, but how'd you use indentation in a log?
I do - what's wrong? Imagine the following on a single line...

[328] 2006-09-23T06:41:50 BLATHER(-100) VerboseSecurity Unauthorized: Your
[328] user account does not have the required permission. Access to
[328] 'manage_main' of (Folder instance at 033C8290) (/Softlab/otros)
[328] denied. Your user account, softlab, exists at /acl_users. Access
[328] requires one of the following roles: ['Softlab']. Your roles in this
[328] context are ['Authenticated', 'Manager', 'Owner'].

Gabriel Genellina
Softlab SRL

__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas

Sep 23 '06 #4
Gabriel Genellina wrote:

[log w/indentation]
I do - what's wrong? Imagine the following on a single line...
Ah, K. Got it :)

Regards,
Björn

--
BOFH excuse #351:

PEBKAC (Problem Exists Between Keyboard And Chair)

Sep 23 '06 #5

Bjoern Schliessmann wrote:
metaperl wrote:
Hello, I am looking for a module which has
* log levels
* output to stdout and file (either/or based on config)
* nicely formatted log output (e.g., indentation when appropriate)

Sorry for being nosey, but how'd you use indentation in a log?
I guess I was thinking more along the lines of debugging. For example,
if you have two nested loops, you can increase the indentation level of
output as you move into each loop to show where the output is coming
from.

Sep 23 '06 #6

Robert Kern wrote:
metaperl wrote:
Hello, I am looking for a module which has
>
You should look in the standard library before hitting the Package Index.

http://www.python.org/doc/current/li...e-logging.html
Very nice module. Thanks for the pointer.

Sep 23 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Rob Cranfill | last post by:
Hello, I've successfully coded Python to do what I want with a RotatingFileHandler, but am having trouble getting the same behavior via a config file. I wanted to create one log file each...
0
by: Jay Pondy | last post by:
While logging or tracing an application I frequently need to know where the code is executing - the class.method name. One way to obtain this information is: Me.GetType.Name & "." &...
6
by: Lee Connell | last post by:
Hello, I am trying to use the Application blocks configuration manager. I am reading the docs on how to setup the app.config file to use the proper reader/writer. I want to use xml file. I...
4
by: Bob Rock | last post by:
Hello, I'd like to log to a file from an asp.net application but it seems that the user under which asp.net applications run has very limited permissions. Apart giving the user greater...
0
by: Steve | last post by:
Hi All I have an odd thing happening with my splash screen form The splash screen is set in Project properties and in the 'new' event of the splash form I run some code (before the...
5
by: jb29990 | last post by:
Hi. I need am application logging library, and am not satisfied with the one's I've tried out so far: log4cpp and log4cxx. Neither are type-safe. Also, when not logging there still seems to be a...
1
by: Leeh | last post by:
Hi, I am thinking to improve serveral application logging and make them consistent for easier monitoring and report. These applications are all windows service and provide clients some data....
3
by: guybenron | last post by:
Hey, I have a sort of petty-neurotic question, I'm kinda pedantic and like to keep my log directories clean, and this thing is bothering me to the point of actually posting a question (couldn't...
0
by: =?Utf-8?B?Si4gUmF5bW9uZA==?= | last post by:
Hi, Is it possible to specify a configuration file other than the default «ABC.exe.config»? In others words, I would like the application logging block to use a customized configuration...
4
by: Matthew Wilson | last post by:
I'm working on a package that uses the standard library logging module along with a .cfg file. In my code, I use logging.config.fileConfig('/home/matt/mypackage/matt.cfg') to load in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.