New logger

21 07 2008

Logging is probably the most essential part of ng right now. With no visible interface, all the feedback is sent to the log. Previously this was done with a mix of a custom logMessage method as well as dbg_printf, but that’s about to change. Elite just commited the new Logger code that uses streams to handle the output.

This should allow for neater code, as well as allowing more complex messages to be logged with a minimum effort.

A lower level logging will also be implemented that in essence captures the start and stop times of events into a log file as well as some event specific logging.

The bbTrace application displaying an ad-hoc log file

The bbTrace application displaying an ad-hoc log file

The good thing about this is that it allows us to streamline the code, but also that it allows us to easier track down bugs and crashes occuring at startup. If a user experiences a crash, the trace log has taken a snapshot into the belly of the beast, and will hopefully be able to provide some insight in what’s happening and where to look.

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s




%d bloggers like this: