mirror of
https://github.com/vale981/apollo-server
synced 2025-03-16 07:46:54 -04:00
26 lines
302 B
TypeScript
26 lines
302 B
TypeScript
![]() |
export enum LogAction {
|
||
|
request,
|
||
|
parse,
|
||
|
validation,
|
||
|
execute,
|
||
|
setup,
|
||
|
cleanup,
|
||
|
}
|
||
|
|
||
|
export enum LogStep {
|
||
|
start,
|
||
|
end,
|
||
|
status,
|
||
|
}
|
||
|
|
||
|
export interface LogMessage {
|
||
|
action: LogAction;
|
||
|
step: LogStep;
|
||
|
key?: string;
|
||
|
data?: any;
|
||
|
}
|
||
|
|
||
|
export interface LogFunction {
|
||
|
(message: LogMessage);
|
||
|
}
|