Summary: Make it more explicit. What has succeeded, failed, started. Reviewed By: ivanmisuno Differential Revision: D49227799 fbshipit-source-id: fe9e6baaff227cf1db0b3150a3ee8cf194d2b6e6
31 lines
661 B
C++
31 lines
661 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace facebook {
|
|
namespace flipper {
|
|
|
|
void log(const std::string& message);
|
|
|
|
using LogHandlerFunc = void (*)(const std::string& message);
|
|
|
|
void setLogHandler(LogHandlerFunc handler);
|
|
LogHandlerFunc getLogHandler();
|
|
void defaultLogHandler(const std::string& message);
|
|
|
|
} // namespace flipper
|
|
} // namespace facebook
|
|
|
|
#if FLIPPER_DEBUG_LOG
|
|
#define DEBUG_LOG(...) facebook::flipper::log(__VA_ARGS__)
|
|
#else
|
|
#define DEBUG_LOG(...)
|
|
#endif
|