[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Logging to HTTP or File

D'Arcy J.M. Cain

2/27/2008 3:01:00 PM

On Wed, 27 Feb 2008 10:16:33 -0000
"Robert Rawlins - Think Blue" <robert.rawlins@thinkbluemedia.co.uk>
wrote:
> How would you manage this? I'm thinking about building my own custom log
> handler for the task, which if unable to resolve the webservice will just
> log to the file instead, I'm just not sure if there is a better way of
> achieving this, what are your thoughts?

Personally I would write to a local file all the time and have a second
process that reads that file and updates the server. That way you
don't have to worry about external resources in your main program. As
a side effect, you automatically get a local backup. If the server
goes down your secondary process deals with it, not your primary app
that is handling your user requests.

--
D'Arcy J.M. Cain <darcy@druid.net> | Democracy is three wolves
http://www.druid.... | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.