File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @ima/core " : patch
3+ ---
4+
5+ Fix type definition of $Sever: add loggerFactory definition and remove obsolete logger definition.
Original file line number Diff line number Diff line change @@ -178,12 +178,18 @@ export interface Environment {
178178 */
179179 maxEntries ?: number ;
180180 } ;
181- logger ?: {
182- /**
183- * Use "simple", "JSON" or "dev". "dev" option produces colorful output
184- * with source-mapping of error stacks. This is usefull in development.
185- */
186- formatting ?: 'simple' | 'dev' | 'JSON' ;
181+
182+ /**
183+ * Logger factory function that returns a logger instance with console-like methods.
184+ * The function may optionally accept environment parameters.
185+ */
186+ loggerFactory ?: ( params ?: { environment : Environment } ) => {
187+ log : ( ...args : any [ ] ) => void ;
188+ info : ( ...args : any [ ] ) => void ;
189+ warn : ( ...args : any [ ] ) => void ;
190+ error : ( ...args : any [ ] ) => void ;
191+ debug : ( ...args : any [ ] ) => void ;
192+ [ key : string ] : any ;
187193 } ;
188194
189195 /**
You can’t perform that action at this time.
0 commit comments