1 //! file output for Flog
3 //! @file flog_output_file.h
4 //! @author Nabeel Sowan (nabeel.sowan@vibes.se)
6 //! When you want flog to write to a file
7 //! Choose logfile name by setting data to string
10 #ifndef FLOG_OUTPUT_FILE_H
11 #define FLOG_OUTPUT_FILE_H
15 #ifdef FLOG_CONFIG_OUTPUT_FILE
18 #ifndef FLOG_CONFIG_STRING_OUTPUT
19 #error FLOG_CONFIG_OUTPUT_FILE requires FLOG_CONFIG_STRING_OUTPUT
21 #ifndef FLOG_CONFIG_MSG_ID_STRINGS
22 #error FLOG_CONFIG_OUTPUT_FILE requires FLOG_CONFIG_MSG_ID_STRINGS
24 #ifndef FLOG_CONFIG_ERRNO_STRINGS
25 #error FLOG_CONFIG_OUTPUT_FILE requires FLOG_CONFIG_ERRNO_STRINGS
28 int flog_output_file(FLOG_T
*log
,const FLOG_MSG_T
*msg
);
29 FLOG_T
* create_flog_output_file(const char *name
, FLOG_MSG_TYPE_T accepted_msg_type
, const char *filename
);
30 void destroy_flog_output_file(FLOG_T
*p
);
32 #endif //FLOG_CONFIG_OUTPUT_FILE
34 #endif //FLOG_OUTPUT_FILE_H