first commit
This commit is contained in:
38
include/platform/log/file_log.h
Normal file
38
include/platform/log/file_log.h
Normal file
@ -0,0 +1,38 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
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__
|
||||
Reference in New Issue
Block a user