view mde/init.d @ 0:d547009c104c

Repository creation. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 27 Oct 2007 18:05:39 +0100
parents
children 18491334a525
line wrap: on
line source

/**************************************************************************************************
 * Initialisation setup and exit cleanup module.
 *
 * This module controls most of the initialisation and deinitialisation of the program.
 *************************************************************************************************/

// tango imports
import tango.util.log.Log : Log;
import tango.util.log.ConsoleAppender : ConsoleAppender;

/**
 * Init class
 *
 * A scope class created at beginning of the program and destroyed at the end; thus the CTOR
 * handles program initialisation and the DTOR handles program cleanup.
 */
scope class Init
{
    this()
    {
        // For now, just log to the console:
        Log.getRootLogger().addAppender(new ConsoleAppender);
    }
    
    ~this()
    {
    }
}