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 581|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Manchester Arena Explosion
Jayenkai Wed 04:17
Family
Jayenkai Wed 04:06
RIP - Sir Roger Moore
rockford Tue 15:56
CSS-Me-Do - SoCoder2
Jayenkai Tue 09:41
Any Feature Requests?
spinal Mon 12:02
Switch - Mini Dock
Jayenkai Mon 06:26
AGameAWeek : 2017 - Part One
rychan Mon 05:17
ArdWiiNo?
spinal Sun 12:42
Great Big Youtube thread
Jayenkai Sun 11:13
Time for a new Android Test Doohickey
Jayenkai Sun 07:00
More

Latest Items
Dev-Diary : My Journey into NES Development
rychan Tue 01:53
Showcase : Flappadiddle
Jayenkai Sun 14:39
Snippet : QFind
Jayenkai Sun 13:02
Showcase : Tiny Blocks
Jayenkai Sun 04:08
Showcase : Read Error A
rychan Fri 05:13
Blog : All my makes!
Jayenkai Tue 05:48
Showcase : Infinitron
rychan Mon 18:03
Showcase : Hives
rockford Wed 12:53
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
More

Who's Online
Jayenkai
Wed, at 05:34
Socoder
Wed, at 05:30
HoboBen
Wed, at 04:23
rskgames
Wed, at 03:31
therevillsgames
Wed, at 03:26
steve_ancell
Wed, at 03:22
Pakz
Wed, at 03:21
rockford
Wed, at 02:15
spinal
Wed, at 01:19
Dabz
Tue, at 22:58
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.