Coverage Report

Created: 2025-07-01 06:18

/src/WasmEdge/include/plugin/wasi_logging/module.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 "env.h"
10
11
#include "plugin/plugin.h"
12
#include "runtime/instance/module.h"
13
14
namespace WasmEdge {
15
namespace Host {
16
17
class WasiLoggingModule : public Runtime::Instance::ModuleInstance {
18
public:
19
  WasiLoggingModule();
20
21
0
  WASILogging::LogEnv &getEnv() { return Env; }
22
23
  static Plugin::Plugin::PluginDescriptor PluginDescriptor;
24
  static Plugin::PluginModule::ModuleDescriptor ModuleDescriptor[];
25
26
private:
27
  WASILogging::LogEnv Env;
28
};
29
30
} // namespace Host
31
} // namespace WasmEdge