Tipro API
Communicate with Tipro devices
Log.h
1
//tomaz20170411 created (http://www.infernodevelopment.com/c-log-file-class-forget-debuggers)
2
#pragma once
3
4
#include <fstream>
5
6
using namespace
std
;
7
8
//void LogFileWrite(const char* logline, ...);
9
void
LogFileWrite(
int
level,
const
char
* logline, ...);
10
void
SetLogLevel(
int
level);
11
int
GetLogLevel();
12
std::string HexStr(
const
unsigned
char
*data,
unsigned
int
len);
13
14
class
Log
{
15
public
:
16
Log
(
char
* filename);
17
~
Log
();
18
void
Write(
char
* logline);
19
void
Write(
const
char
* logline, ...);
20
private
:
21
ofstream m_stream;
22
};
std
Log
Definition:
Log.h:14
Generated by
1.8.13