AppCore
Loading...
Searching...
No Matches
PersistentEventsLogging.h
Go to the documentation of this file.
1#ifndef PERSISTENTEVENTSLOGGING_H
2#define PERSISTENTEVENTSLOGGING_H
3
4// CORE INCLUDES
5#include "core/common/ApplicationPath.h"
6
7// LOGS
8#define __USE_LOG__
9#include "core/log/emlog.h"
10
11#ifdef MIKRO_CORTEXA8
12 #define PERSISTENT_EVENTS_LOG_FILE_PATH PATH_VARIABLE_LOG_DIR"persistentEvents.log"
13
14 #define LOG_TRACE_EVENT( msg, args... ) EFTRACE( PERSISTENT_EVENTS_LOG_FILE_PATH, msg, ## args )
15 #define LOG_INFO_EVENT( msg, args... ) EFINFO( PERSISTENT_EVENTS_LOG_FILE_PATH, msg, ## args )
16 #define LOG_WARN_EVENT( msg, args... ) EFWARN( PERSISTENT_EVENTS_LOG_FILE_PATH, msg, ## args )
17 #define LOG_ERROR_EVENT( msg, args... ) EFERROR( PERSISTENT_EVENTS_LOG_FILE_PATH, msg, ## args )
18#else
19 #define LOG_TRACE_EVENT( msg, args... )
20 #define LOG_INFO_EVENT( msg, args... )
21 #define LOG_WARN_EVENT( msg, args... )
22 #define LOG_ERROR_EVENT( msg, args... )
23#endif // ifdef MIKRO_CORTEXA8
24
25#endif // PERSISTENTEVENTSLOGGING_H