blob: a8d6085a3ffffb66031b8c6c19c943b09548c80c [file] [log] [blame]
// SPDX-License-Identifier: MediaTekProprietary
/*
* LogUtils.h
*
* Created on: Oct 14, 2016
* Author: mtk54498
*/
#ifndef SRC_LogUtils_H_
#define SRC_LogUtils_H_
#include <stdarg.h>
#include <assert.h>
#undef LOG_TAG
#define LOG_TAG "APN"
namespace apn_logutils {
class SLOG {
private:
const static char* SEPERATE;
public:
static void printfLog(const char* tag, const char* debug, const char* fmt,
va_list args);
static void D(const char* tag, const char* fmt, ...);
static void E(const char* tag, const char* fmt, ...);
static void FATAL(const char* tag, const char* fmt, ...);
};
}
#define SLOGD(...) apn_logutils::SLOG::D(LOG_TAG, ##__VA_ARGS__)
#define SLOGFATAL(f, a...) apn_logutils::SLOG::FATAL(LOG_TAG, f "(%s, %d)", ##a, __FILE__, __LINE__)
#endif /* SRC_LogUtils_H_ */