#pragma once

#include <Arduino.h>

// 1 = logi w Serial Monitorze, 0 = całkowicie wyłączone logowanie.
#ifndef VERBOSE_LOGGING
#define VERBOSE_LOGGING 1
#endif

#if VERBOSE_LOGGING != 0 && VERBOSE_LOGGING != 1
#error "VERBOSE_LOGGING must be 0 or 1"
#endif

#if VERBOSE_LOGGING
#define LOG_BEGIN(...) Serial.begin(__VA_ARGS__)
#define LOG_PRINT(...) Serial.print(__VA_ARGS__)
#define LOG_PRINTLN(...) Serial.println(__VA_ARGS__)
#define LOG_PRINTF(...) Serial.printf(__VA_ARGS__)
#else
#define LOG_BEGIN(...) ((void)0)
#define LOG_PRINT(...) ((void)0)
#define LOG_PRINTLN(...) ((void)0)
#define LOG_PRINTF(...) ((void)0)
#endif
