Skip to content

Instantly share code, notes, and snippets.

@mczhao1977
mczhao1977 / logger.h
Created November 9, 2021 07:17 — forked from vgonisanz/logger.h
Simple header to print logs in Android/iOS,Windows/Linux/Mac
#pragma once
// Usage:
// VGONI_DEBUG_LOGS 1 = Print logs, if 0 won't.
// LOGD = Debug, LOGI = Info, LOGE = Error, LOGW = Warning, LOGV = Verbose
// 1º Include this header in the cpp to use logs
// 2º Add in top of the file: #define LOG_TAG "CppNameOrID"
// 3º LOGD("Your message: %s in position %d", variable.c_str(), myInt);
//
// Example In myFile.cpp: