Class LOG_FILE.
More...
#include <logfile.h>
|
| | log_file (char *filename) |
| | Provide a log file to screen and files. More...
|
| |
| | ~log_file () |
| | destroy file object. More...
|
| |
| void | enableLog (bool is_en) |
| | True.False to enable or disable logs to the file. More...
|
| |
| void | log (char *message) |
| | write message or string to log file w/ current date time. More...
|
| |
| void | logNoDate (char *message) |
| | write string to logfile w/ no timestamp. More...
|
| |
| void | puts (char *message, int len) |
| | low level write to log file. More...
|
| |
| void | enablePrintf (bool is_pr) |
| | true.false to enable print logs to screen as well as file. More...
|
| |
◆ anonymous enum
| Enumerator |
|---|
| num_saved_files | |
◆ log_file()
| log_file::log_file |
( |
char * |
filename | ) |
|
Provide a log file to screen and files.
writes log messages to fie with date and times.
- Author
- Tim Madden
- Date
- 2003 constructor, give filename to write to. Like "C:/a/b/cc/dd.txt" or linux name like "/hello/meme/logs/me.txt"
◆ ~log_file()
◆ enableLog()
| void log_file::enableLog |
( |
bool |
is_en | ) |
|
True.False to enable or disable logs to the file.
◆ enablePrintf()
| void log_file::enablePrintf |
( |
bool |
is_pr | ) |
|
true.false to enable print logs to screen as well as file.
◆ log()
| void log_file::log |
( |
char * |
message | ) |
|
write message or string to log file w/ current date time.
also writes to screen.
◆ logNoDate()
| void log_file::logNoDate |
( |
char * |
message | ) |
|
write string to logfile w/ no timestamp.
◆ puts()
| void log_file::puts |
( |
char * |
message, |
|
|
int |
len |
|
) |
| |
low level write to log file.
string and lengt of string.
◆ fp
◆ is_enabled
| bool log_file::is_enabled |
|
protected |
◆ is_printf
◆ log_file_name
| char log_file::log_file_name[255] |
|
protected |
The documentation for this class was generated from the following files:
- /home/epics/devel/areaDetector-3-5/ADCameraLink/cameralinkApp/src/logfile.h
- /home/epics/devel/areaDetector-3-5/ADCameraLink/cameralinkApp/src/logfile.cpp