mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-26 18:41:18 +00:00
Updated ICompatibleLogger to accept params object[] for flexible logging. Refactored TraceLogger to support the new interface and improved formatting. Added JsNative.cs to encapsulate ChakraCore P/Invoke interop, and updated JsCore to use JsNative for all native calls. Modified all resource tools to accept and use ICompatibleLogger for consistent logging. Updated project file to include new and updated sources.
18 lines
618 B
C#
18 lines
618 B
C#
// ICompatibleLogger.cs (WelsonJS.Launcher)
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2025 Namhyeon Go <gnh1201@catswords.re.kr>, Catswords OSS and WelsonJS Contributors
|
|
// https://github.com/gnh1201/welsonjs
|
|
//
|
|
// We use the ICompatibleLogger interface to maintain a BCL-first style.
|
|
// This allows for later replacement with logging libraries such as ILogger or Log4Net.
|
|
//
|
|
namespace WelsonJS.Launcher
|
|
{
|
|
public interface ICompatibleLogger
|
|
{
|
|
void Info(params object[] args);
|
|
void Warn(params object[] args);
|
|
void Error(params object[] args);
|
|
}
|
|
}
|