Skip to content
Snippets Groups Projects
Commit e7ca4d29 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

logger: use DRING_PUBLIC

Change-Id: I55664ee12cb3b7ca372ec9efcb654cb9f68242fb
parent 3150964d
No related branches found
No related tags found
No related merge requests found
...@@ -594,7 +594,7 @@ Logger::debugEnabled() ...@@ -594,7 +594,7 @@ Logger::debugEnabled()
return debugEnabled_.load(std::memory_order_relaxed); return debugEnabled_.load(std::memory_order_relaxed);
} }
DRING_PUBLIC void void
Logger::vlog(int level, const char* file, int line, bool linefeed, const char* fmt, va_list ap) Logger::vlog(int level, const char* file, int line, bool linefeed, const char* fmt, va_list ap)
{ {
if (not debugEnabled_.load(std::memory_order_relaxed) and level < LOG_WARNING) { if (not debugEnabled_.load(std::memory_order_relaxed) and level < LOG_WARNING) {
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#pragma once #pragma once
#include "jami/def.h"
//#define __STDC_FORMAT_MACROS 1 //#define __STDC_FORMAT_MACROS 1
#include <cinttypes> // for PRIx64 #include <cinttypes> // for PRIx64
#include <cstdarg> #include <cstdarg>
...@@ -110,12 +112,14 @@ public: ...@@ -110,12 +112,14 @@ public:
/// ///
/// Example: JAMI_DBG("%s", "Hello, World!") /// Example: JAMI_DBG("%s", "Hello, World!")
/// ///
DRING_PUBLIC
static void log(int level, const char* file, int line, bool linefeed, const char* const fmt, ...) static void log(int level, const char* file, int line, bool linefeed, const char* const fmt, ...)
PRINTF_ATTRIBUTE(5, 6); PRINTF_ATTRIBUTE(5, 6);
/// ///
/// Printf fashion logging (using va_list parameters) /// Printf fashion logging (using va_list parameters)
/// ///
DRING_PUBLIC
static void vlog(int level, const char* file, int line, bool linefeed, const char* fmt, va_list); static void vlog(int level, const char* file, int line, bool linefeed, const char* fmt, va_list);
static void setConsoleLog(bool enable); static void setConsoleLog(bool enable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment