t_logger.cpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002 *                                                                             *
00003 *  Name   : test_logger                                                       *
00004 *  Author : Chris Koeritz                                                     *
00005 *                                                                             *
00006 *******************************************************************************
00007 * Copyright (c) 1995-$now By Author.  This program is free software; you can  *
00008 * redistribute it and/or modify it under the terms of the GNU General Public  *
00009 * License as published by the Free Software Foundation; either version 2 of   *
00010 * the License or (at your option) any later version.  This is online at:      *
00011 *     http://www.fsf.org/copyleft/gpl.html                                    *
00012 * Please send any updates to: fred@gruntose.com                               *
00013 \*****************************************************************************/
00014 
00015 #include <basis/guards.h>
00016 #include <basis/istring.h>
00017 #include <loggers/file_logger.h>
00018 #include <opsystem/path_configuration.h>
00019 #include <data_struct/static_memory_gremlin.h>
00020 
00021 HOOPLE_STARTUP_CODE;
00022 
00023 int main(int formal(argc), char *formal(argv)[])
00024 {
00025   file_logger log(path_configuration::make_logfile_name("t_logger.log"));
00026   log.log("yo!");
00027 
00028 //change this to actually compare the data in the file.
00029 
00030   guards::alert_message("file_logger: works for all functions tested if there's a "
00031       "t_logger.log in the log directory.");
00032   return 0;
00033 }
00034 

Generated on Fri Nov 28 04:29:39 2008 for HOOPLE Libraries by  doxygen 1.5.1