slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Log.h
浏览该文件的文档.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
10#include <yoga/Yoga.h>
11
12#include <yoga/config/Config.h>
13#include <yoga/enums/LogLevel.h>
14#include <yoga/node/Node.h>
15
16namespace facebook::yoga {
17
18void log(LogLevel level, const char* format, ...) noexcept;
19
20void log(
21 const yoga::Node* node,
22 LogLevel level,
23 const char* format,
24 ...) noexcept;
25
26void log(
27 const yoga::Config* config,
28 LogLevel level,
29 const char* format,
30 ...) noexcept;
31
33
34} // namespace facebook::yoga
int(* YGLogger)(YGConfigConstRef config, YGNodeConstRef node, YGLogLevel level, const char *format, va_list args)
Definition YGConfig.h:103
float YGMeasureMode float YGMeasureMode float YGMeasureMode float float float float float YGConfigRef config
Definition YGNode.h:302
Definition Benchmark.cpp:19
LogLevel
Definition LogLevel.h:18
YGLogger getDefaultLogger()
Definition Log.cpp:62
void log(LogLevel level, const char *format,...) noexcept
Definition Log.cpp:32