2012-04-21 21:13:50 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 00:50:59 +00:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
2012-02-27 19:07:24 +00:00
|
|
|
*
|
2012-04-21 21:13:50 +00:00
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
2012-02-27 19:07:24 +00:00
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
2013-01-06 13:41:55 +00:00
|
|
|
* * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
2012-02-27 19:07:24 +00:00
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
2012-04-21 21:31:57 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
2012-02-27 19:07:24 +00:00
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2012-04-21 21:25:32 +00:00
|
|
|
#ifndef __RARCH_LOGGER_OVERRIDE_H
|
|
|
|
#define __RARCH_LOGGER_OVERRIDE_H
|
2012-02-27 19:07:24 +00:00
|
|
|
|
2012-04-13 20:54:30 +00:00
|
|
|
#if defined(HAVE_LOGGER)
|
2012-07-28 15:32:30 +00:00
|
|
|
#include "logger.h"
|
|
|
|
|
|
|
|
#ifdef IS_SALAMANDER
|
2012-02-27 19:07:24 +00:00
|
|
|
|
2012-04-21 21:25:32 +00:00
|
|
|
#define RARCH_LOG(...) do { \
|
2012-07-28 15:32:30 +00:00
|
|
|
logger_send("RetroArch Salamander: " __VA_ARGS__); \
|
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_LOG_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch Salamander: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-10-21 22:54:27 +00:00
|
|
|
#define RARCH_LOG_OUTPUT(...) do { \
|
|
|
|
logger_send("RetroArch Salamander [OUTPUT] :: " __VA_ARGS__); \
|
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_LOG_OUTPUT_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch Salamander [OUTPUT] :: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-07-28 15:32:30 +00:00
|
|
|
#define RARCH_ERR(...) do { \
|
|
|
|
logger_send("RetroArch Salamander [ERROR] :: " __VA_ARGS__); \
|
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_ERR_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch Salamander [ERROR] :: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-07-28 15:32:30 +00:00
|
|
|
#define RARCH_WARN(...) do { \
|
|
|
|
logger_send("RetroArch Salamander [WARN] :: " __VA_ARGS__); \
|
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_WARN_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch Salamander [WARN] :: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-07-28 15:32:30 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
#define RARCH_LOG(...) do { \
|
|
|
|
logger_send("RetroArch: " __VA_ARGS__); \
|
2012-03-12 17:50:25 +00:00
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_LOG_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-04-21 21:25:32 +00:00
|
|
|
#define RARCH_ERR(...) do { \
|
2012-04-21 21:13:50 +00:00
|
|
|
logger_send("RetroArch [ERROR] :: " __VA_ARGS__); \
|
2012-03-12 17:50:25 +00:00
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_ERR_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch [ERROR] :: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-04-21 21:25:32 +00:00
|
|
|
#define RARCH_WARN(...) do { \
|
2012-04-21 21:13:50 +00:00
|
|
|
logger_send("RetroArch [WARN] :: " __VA_ARGS__); \
|
2012-03-12 17:50:25 +00:00
|
|
|
} while(0)
|
2012-07-28 15:32:30 +00:00
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_WARN_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch [WARN] :: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-10-21 22:54:27 +00:00
|
|
|
#define RARCH_LOG_OUTPUT(...) do { \
|
|
|
|
logger_send("RetroArch [OUTPUT] :: " __VA_ARGS__); \
|
|
|
|
} while(0)
|
|
|
|
|
2013-12-22 21:42:03 +00:00
|
|
|
#define RARCH_LOG_OUTPUT_V(tag, fmt, vp) do { \
|
|
|
|
logger_send("RetroArch [OUTPUT] :: " tag); \
|
|
|
|
logger_send_v(fmt, vp); \
|
|
|
|
} while (0)
|
|
|
|
|
2012-07-28 15:32:30 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2013-01-06 13:41:55 +00:00
|
|
|
|
|
|
|
#endif
|