44 #if !defined(_KKU_MSGQUEUE_) 56 RunLog (
const char* _fileName);
62 RunLog (std::ostream& errorLogStream);
65 RunLog (std::ostream* logStream);
82 void Append (
const char* str);
137 RunLog& operator<< (
bool right);
144 RunLog& operator<< (
double right);
145 RunLog& operator<< (
char right);
146 RunLog& operator<< (
const char* right);
148 RunLog& operator<< (KKStrConstPtr right);
151 RunLog& operator<< (std::ostream& (* mf)(std::ostream &));
163 void DisplayTimeStamp ();
165 void GetLoggingLevel ();
167 bool callDisplayTimeStamp;
181 std::ostream* logFile;
192 std::ofstream* ourLogFile;
200 #define _RunLog_Defined_ __int16 kkint16
16 bit signed integer.
void DetachFile()
Closes out current log file and starts writing to stdout aka 'cout'.
RunLog(const char *_fileName)
Creates instance with a log messages written to file 'fileName'.
RunLog(std::ostream &errorLogStream)
Creates instance where logging messages are written to file stream specified by 'errorLogStream'.
unsigned __int16 kkuint16
16 bit unsigned integer.
unsigned __int32 kkuint32
RunLog & Level(kkint32 _level)
void WriteLine(const KKStr &s)
Writes a line of text to log file; does not check logging level; and does not write any preview text ...
RunLog(const KKStr &_fileName)
Creates instance with a log messages written to file 'fileName'.
RunLog()
Creates an instance were logging will go to the console.
kkint32 MemoryConsumedEstimated() const
void AttachMsgQueue(MsgQueuePtr _msgQueue)
All activity that is written to the log file will be added as messages to '_msgQueue'.
void SetLevel(kkint32 _level)
RunLog(std::ostream *logStream)
Creates instance where logging messages are written to file stream pointed to by 'logStream'.
Will manage a buffer that will allow multiple threads to add and remove messages to a queue...
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
unsigned __int64 kkuint64
void AttachFileAppend(const KKStr &_fileName)
Call this method to start appending logging messages to a different file.
void SetLoggingLevel(kkint32 _loggingLevel)
void AttachFile(const KKStr &_fileName)
Call this method to start logging messages to a different file.
Used for logging messages.
void AttachFile(std::ostream &_logFile)
Call this method to start logging messages to a specific file stream.
void Append(const char *str)
Appends string to log; generally used by other Log methods but can be called by public.
void WriteLine(const char *s)
Writes a line of text to log file; does not check logging level; and does not write any preview text ...
kkint32 LineCount() const
const KKStr & LastLine()
Returns the last line of text written to the log file.
RunLog(MsgQueuePtr _msgQueue)