mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Log: Added logging support
This commit is contained in:
parent
a0c95edfcd
commit
3a751e628a
5 changed files with 46 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue