Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 18 in printed book and digital formats -- plus a one-year subscription (beginning with 19.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 1.6



Issue: 1.6 (June/July 2003)
Author: Brian Jones
Article Description: No description available.
Article Length (in bytes): 3,988
Starting Page Number: 8
Article Number: 1603
Related Web Link(s):


Excerpt of article text...

Keeping a log of your program's progress can be a key element in debugging a piece of code or in tracking the effects of program changes on program performance. There are simple ways to implement very basic logging in REALbasic, but LogIt provides a small, stable, relatively advanced solution that will fulfill the needs of almost any developer on almost any project.

LogIt is installed by including a module and a window in your project and setting some global variables at startup. If the user chooses to log to the window rather than to a file, a discreet floating window is shown with all log entries. The developer appends entries with their timestamp automatically included by simply passing a user-defined string to a function called WriteLog. The logging process can be customized by setting four globals.

The first global, LoggingFormat, allows users to select whether they want to timestamp according to the time of day, in units of ticks or microseconds, or not at all. Setting LogRelativeTo allows the user to specify the time since the log opened, since the last log entry was made, or since system startup. The LogIt window will show if LoggingToWindow is set to true, otherwise the log will be saved to a file on the Desktop. Finally, setting LogImmediately allows the user to decide between the security of saving the log with each entry or the speed increase of keeping it in a cache at the risk of losing the log data if there is a problem.

...End of Excerpt. Please purchase the magazine to read the full article.