Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
StandOut logging date/time stamp or general Prefix option?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
keith@setuplinux.com  
View profile  
 More options Oct 19 2007, 11:45 am
From: "ke...@setuplinux.com" <cu816...@gmail.com>
Date: Fri, 19 Oct 2007 15:45:10 -0000
Local: Fri, Oct 19 2007 11:45 am
Subject: StandOut logging date/time stamp or general Prefix option?
I'm trying to figure out a easy way to pre-pend a date/time so I can
format this somewhat like other logfiles in /var/log.   I can't see
any sort of TimeStamp option, but maybe I'm missing it.  There is a
errPrefix option, but it would be nice if there was a "Prefix" one as
well that would prefix everything.  That would make it easy to put in
a timestamp.

I'm still new to using this module so I'm guessing it's been done and
I can't see it, or maybe it's been requested.

Anyways thanks for the great module, it's working great for me.  Any
help on this would be appreciated.

Keith


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Foord  
View profile  
 More options Oct 22 2007, 5:11 pm
From: Michael Foord <fuzzy...@voidspace.org.uk>
Date: Mon, 22 Oct 2007 22:11:45 +0100
Local: Mon, Oct 22 2007 5:11 pm
Subject: Re: StandOut logging date/time stamp or general Prefix option?
Hello Keith,

Hmm... I thought this was in, but browsing the docs [1] it doesn't look
like it is. :-(

It should be easy to add - the best place is probably in the 'write'
method of _Stream, probably in the line "data = self._prefix + data"

All the best,

Michael Foord
http://www.manning.com/foord

[1] http://www.voidspace.org.uk/python/standout.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »