@thatcompany/ts-tool
Version:
基于TypeScript编写的工具库
23 lines (22 loc) • 752 B
TypeScript
import { ILoggerManagerOptions } from '../modules/logger/manager/ILoggerManagerOptions';
import { ILogTransport } from '../modules/logger/transport/ILogTransport';
import { ILogSerializer } from '../modules/logger/serializer/ILogSerializer';
import { ILogObj } from 'tslog';
import { ILogObjMeta } from 'tslog/dist/types/interfaces';
export type TLogObj = ILogObj & ILogObjMeta;
/**
* 日志传输器类型
*/
export type TLogTransport = ILogTransport;
/**
* 日志等级类型
*/
export type TLogLevel = 'SILLY' | 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
/**
* 日志管理器选项类型
*/
export type TLoggerManagerOptions = ILoggerManagerOptions;
/**
* 日志记录器类型
*/
export type TLogSerializer = ILogSerializer;