@tsed/formio
Version:
Formio package for Ts.ED framework
13 lines (10 loc) • 347 B
text/typescript
import {PlatformContext} from "@tsed/platform-http";
import {Alter} from "../decorators/alter.js";
import {AlterHook} from "../domain/AlterHook.js";
("log")
export class AlterLog implements AlterHook {
transform(event: string, ctx: PlatformContext, ...info: any[]): boolean {
ctx.logger.debug({event, info});
return false;
}
}