/******************************************************************** * @author: Kaven * @email: kaven@wuwenkai.com * @website: http://blog.kaven.xyz * @file: [Kaven-Basic] /src/libs/logger/LoggingAgent.ts * @create: 2025-06-20 16:06:46.155 * @modify: 2025-10-14 22:39:26.169 * @version: 6.1.0 * @times: 46 * @lines: 154 * @copyright: Copyright © 2018-2025 Kaven. All Rights Reserved. * @description: [description] * @license: * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ********************************************************************/ import { LogLevel } from "../enum/LogLevel"; import { LogType } from "../enum/LogType"; import { ILogColors } from "../interface/ILogColors"; import { ILogger } from "../interface/ILogger"; import { ILogOptions } from "../interface/ILogOptions"; import { ILoggingAgent } from "../interface/ILoggingAgent"; /** * @since 5.0.0 * @version 2025-10-14 */ export declare class LoggingAgent implements ILoggingAgent { readonly Groups: Set; readonly Handlers: Set; InfoColors?: ILogColors; WarnColors?: ILogColors; ErrorColors?: ILogColors; constructor(...loggers: ILogger[]); Info(data: unknown, options?: ILogOptions): void; Warn(data: unknown, options?: ILogOptions): void; Error(data: unknown, options?: ILogOptions): void; protected checkGroup(group?: string): boolean; protected getColors(level: LogLevel): ILogColors | undefined; protected buildLog(level: LogLevel, data: unknown, options?: ILogOptions): string | undefined; protected write(data: string, level: LogLevel, type?: LogType, group?: string): void; } //# sourceMappingURL=LoggingAgent.d.ts.map