Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Showcase > Functions Libraries ( Created 21 September 2008 | Last Edited 21 September 2008)

hlog - Created by HoboBen (No Votes)

Hobo's Logging Library (Cobra)
Created using Cobra > WindowsView Worklog (0 entries)
Download v20080921
Online Documentation
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.

Latest Comments

Posted : Sunday, 21 September 2008, 00:34
Jayenkai


Good lord!
All that for a log!
You're really aiming to log stuff, aren't you!

Um. yeay!
Honestly debuglog / Log("")->log.txt generally does me fine.. And I usually don't even bother!
But I'm sure if I ever bothered to do a larger project (yeah, right!!) it'd be handy to log stuff.

Posted : Sunday, 21 September 2008, 01:32
HoboBen


Yep, call me crazy, but I usually manage to create 20 - 120kb of log files each time I run any of my projects... they're extremely helpful though, so it's definitely been worth the time to do a proper job of it.

Edit: You'd also be surprised at how the program flow often turns out quite a bit different to the understanding of it that you have in your head, and how good it is at making performance issues obvious.

Posted : Monday, 31 August 2009, 16:28
HoboBen


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

Neat!

Latest Posts
Sidewalk Skiing
Jayenkai Sat 14:57
Musical Tastes
Dabz Sat 11:38
FIRST!!!
steve_ancell Sat 11:22
Coder's Block
Jayenkai Thu 09:01
Consumer Lockout
9572AD Thu 06:09
Professor Oak, Honest!!
spinal Wed 23:24
Position in Mind
steve_ancell Wed 20:11
Sonic Adventure v0.x
Jayenkai Wed 07:08
Noel's Graduation
waroffice Wed 02:55
Monkey vs iOS tweaks
spinal Tue 22:51
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
Stolen_Goods
Sun, at 01:04
Dabz
Sun, at 00:34
Cower
Sat, at 23:28
steve_ancell
Sat, at 21:49
blanko1324
Sat, at 20:33
9572AD
Sat, at 19:18
Evil Roy Ferguson
Sat, at 19:12
therevillsgames
Sat, at 19:08
CodersRule
Sat, at 18:37
dna
Sat, at 18:05
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.