* Gets logger context for this entity manager.
(options?: { disableContextResolution?: boolean })
| 458 | * Gets logger context for this entity manager. |
| 459 | */ |
| 460 | getLoggerContext<T extends Dictionary = Dictionary>(options?: { disableContextResolution?: boolean }): T { |
| 461 | const em = options?.disableContextResolution ? this : this.getContext(); |
| 462 | em.loggerContext ??= {}; |
| 463 | |
| 464 | return em.loggerContext as T; |
| 465 | } |
| 466 | |
| 467 | /** Sets the flush mode for this EntityManager. Pass `undefined` to reset to the global default. */ |
| 468 | setFlushMode(flushMode?: FlushMode | `${FlushMode}`): void { |
no test coverage detected