ACKme
/
wiconnect-test-console
Test serial console demonstrating various API functions of WiConnect library.
util/log/log.h
- Committer:
- dan_ackme
- Date:
- 2014-08-11
- Revision:
- 1:5137ec8f4c45
- Parent:
- 0:836c9a6383e0
- Child:
- 12:3dd3a1be40c1
File content as of revision 1:5137ec8f4c45:
/* * Copyright 2014, ACKme Networks * All Rights Reserved. * * This is UNPUBLISHED PROPRIETARY SOURCE CODE of ACKme Networks; * the contents of this file may not be disclosed to third parties, copied * or duplicated in any form, in whole or in part, without the prior * written permission of ACKme Networks. */ #pragma once #include "Wiconnect.h" #define LOG_DEBUG(msg, ...) logDebug(msg "\r\n", ## __VA_ARGS__) #define LOG_INFO(msg, ...) logInfo(msg "\r\n", ## __VA_ARGS__) #define LOG_INFO_WRITE_STR(msg, s) logInfoWriteStr(msg, s) #define LOG_ERROR(msg, ...) logError(msg "\r\n", ## __VA_ARGS__) #define LOG_WICONNECT_ERROR(result, msg, ...) logWiconnectError(result, msg, ## __VA_ARGS__) void logDebug(const char *msg, ...); void logInfo(const char *msg, ...); void logInfoWriteStr(const char *msg, const char *s); void logError(const char *msg, ...); void logWiconnectError(wiconnect::WiconnectResult result, const char *msg, ...); void logWrite(const void *data, int size);