Welcome, Guest. Please login or register.
June 18, 2013, 07:11:15 am

Login with username, password and session length
Members
Total Members: 488
Latest: Wimmie
Stats
Total Posts: 7309
Total Topics: 1178
Online Today: 5
Online Ever: 229
(April 05, 2011, 09:10:50 am)
Users Online
Users: 0
Guests: 4
Total: 4
Permissions

A Squeakyduck Design product
Pages: [1]
Print
Author Topic: logging library  (Read 1403 times)
HoboBen
Cobra Owner
Jr. Member
*
Offline Offline

Posts: 476


hoboben
WWW
« on: September 21, 2008, 08:18:18 am »

I got fed up of re-writing the same logging library every time I started a new program, so I decided to make it into a proper unit.

Having a good debug logging system in your programs can be extremely useful in hunting down bugs and finding performance bottlenecks.

Instead of just appending text to a single file, this logging library uses Logging Contexts that can write to multiple files at once.

This can be really useful if you want to separate your error log from your debug log. Logging contexts makes it easy for any events that enter the error log to be automatically also be added to the debug log at the same time.

This library also supports both real-time logging and buffered logging.

Download
Online Documentation
Logged

HoboBen
Cobra Owner
Jr. Member
*
Offline Offline

Posts: 476


hoboben
WWW
« Reply #1 on: September 01, 2009, 12:29:40 am »

Updated: by switching from a string buffer to a list of strings, buffered logging is about five times faster in my tests.

Neat!
Logged

Pages: [1]
Print
Jump to: