mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-08-19 06:02:11 +00:00
Introduced ICompatibleLogger interface and TraceLogger implementation to enable flexible logging. ResourceServer now uses ICompatibleLogger for error reporting instead of Trace, improving testability and future extensibility. Updated project file to include new logger classes.
18 lines
600 B
C#
18 lines
600 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(string message);
|
|
void Warn(string message);
|
|
void Error(string message);
|
|
}
|
|
}
|