Coverage Report

Created: 2025-07-01 06:18

/src/WasmEdge/include/plugin/wasi_logging/func.h
Line
Count
Source (jump to first uncovered line)
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: 2019-2024 Second State INC
3
4
// BUILTIN-PLUGIN: Temporary move the wasi-logging plugin sources here until
5
// the new plugin architecture ready in 0.15.0.
6
7
#pragma once
8
9
#include "base.h"
10
11
namespace WasmEdge {
12
namespace Host {
13
namespace WASILogging {
14
15
class Log : public Func<Log> {
16
public:
17
0
  Log(LogEnv &HostEnv) : Func(HostEnv) {}
18
  Expect<void> body(const Runtime::CallingFrame &Frame, uint32_t Level,
19
                    uint32_t CxtPtr, uint32_t CxtLen, uint32_t MsgPtr,
20
                    uint32_t MsgLen);
21
};
22
23
} // namespace WASILogging
24
} // namespace Host
25
} // namespace WasmEdge