Log: Added logging support

This commit is contained in:
Paul Beckingham 2016-03-15 23:03:52 -04:00
parent a0c95edfcd
commit 3a751e628a
5 changed files with 46 additions and 17 deletions

View file

@ -25,12 +25,14 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Log.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
int CmdLog ()
int CmdLog (Log& log)
{
std::cout << "# log\n";
log.write ("debug", "----8<----");
return 0;
}

View file

@ -28,6 +28,7 @@
#define INCLUDED_COMMANDS
#include <Rules.h>
#include <Log.h>
int CmdClear ();
int CmdConfig ();
@ -40,7 +41,7 @@ int CmdExtension ();
int CmdGaps ();
int CmdHelpUsage ();
int CmdHelp ();
int CmdLog ();
int CmdLog (Log&);
int CmdImport ();
int CmdReport ();
int CmdStart ();