advanced-logger
Version:
Advanced logger module extendable with plugins. Works in nodejs and browsers
14 lines (11 loc) • 375 B
text/typescript
import IDestructable from "./IDestructable";
export default interface IService extends IDestructable {
/**
* Implement direct communication with API or SDK
*/
sendAllLogs<T>(logs: T[]): Promise<any>;
/**
* Implement the final processing of logs before sending it directly to the endpoint
*/
preparePayload<T>(logs: T[]): Promise<any>;
}