Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

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, 01: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.

Homepage : http://AGameAWeek.com
Posted : Sunday, 21 September 2008, 02: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, 17: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!

-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 635|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Shoutbox Topic - 384
spinal Mon 11:02
AGameAWeek : 2017 - Part One
Jayenkai Mon 09:28
For Greed
steve_ancell Mon 08:05
Puff Dog
spinal Mon 02:42
Crystal Maze
rychan Sun 11:59
CSS-Me-Do - SoCoder2
Jayenkai Sun 08:08
Buy Zelda
Jayenkai Sat 08:34
Welcome Caton
steve_ancell Sat 04:53
Update All Objects in Array?
Jayenkai Sat 03:34
2D Array?
Jayenkai Sat 03:29
More

Latest Items
Blog : Rewatching ''1 Litre of Tears''
Jayenkai Mon 02:52
Snippet : Twitter BBCode
Jayenkai Sun 02:44
Link : Learn C++
Pakz Sat 20:33
Dev-Diary : My Journey into NES Development
Jayenkai Thu 03:58
Showcase : A Civilization Clone v0.5
rychan Thu 03:27
News : Newsletter #320
Jayenkai Tue 18:47
Blog : sadas
hardcoal22 Tue 02:50
Showcase : Flappadiddle
Jayenkai Mon 08:20
Article : Cookie Information
rychan Sun 12:28
Dev-Diary : Wii to N64 adapter
spinal Sat 11:50
Link : MonkeyX code examples
Jayenkai Sat 06:42
Link : Available Languages
Jayenkai Thu 13:22
Blog : Mr Testo Tests
Socoder Tue 07:21
Showcase : Hives
zzoom Fri 16:10
More

Who's Online
Jayenkai
Mon, at 11:17
Pakz
Mon, at 11:14
spinal
Mon, at 11:12
rychan
Mon, at 10:42
GfK
Mon, at 10:12
rskgames
Mon, at 09:36
steve_ancell
Mon, at 09:25
Dan
Mon, at 08:22
shroom_monk
Mon, at 05:58
rockford
Mon, at 05:38
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.