39 lines
695 B
C++
39 lines
695 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
----------------------------------------------------------------------------- */
|
|
|
|
|
|
#ifndef __NFILELOG__
|
|
#define __NFILELOG__
|
|
|
|
|
|
#include "nstring/nstring.h"
|
|
#include "log/log.h"
|
|
|
|
|
|
namespace GS {
|
|
|
|
/*!
|
|
@short File log.
|
|
@author Emmanuel Julien (ejulien@gsworks.fr)
|
|
*/
|
|
class FileLog : public Log
|
|
{
|
|
String path;
|
|
|
|
bool do_timestamp;
|
|
bool initial_write;
|
|
|
|
public:
|
|
|
|
virtual void NewLog(const char *log, char entry_level = EngineLogStandard);
|
|
|
|
FileLog(const char *path, bool do_timestamp = false);
|
|
};
|
|
|
|
} // GS
|
|
|
|
|
|
#endif // __NFILELOG__
|