Logger Macro for iOS
//
// Logger.h
// SlotCore
//
// Created by Fabrizio on 08/04/16.
// Copyright © 2016 Fabrizio Caldarelli. All rights reserved.
//
#ifndef Logger_h
#define Logger_h
// Definisce forme più specifiche per il debug
#ifdef DEBUG
#define LogInfo(category, fmt, ...) NSLog((@"[%@] " fmt), category, ##__VA_ARGS__);
#define LogErr(fmt, ...) NSLog((@"[ERR] %s[Ln %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#endif
// Disabilita NSLog quando non si è in modalità DEBUG
#ifndef DEBUG
#define NSLog(...);
#endif
#endif /* Logger_h */