feat: custom logger (#13156)

* feat: custom logger

* mock log

* unit test

* FF and jobs loader

* unit test

* add to ResourceLoader

* get from container

* mock

* rm log

* default logger mock

* link loaders, express

* comments

* initialize container as first step

* db conn

* test

* initialize start

* plugin build using default logger

* ignore .medusa

* revert ignroe

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Carlos R. L. RodriguesandOli Juhl authored and GitHub committed 2025-08-28 15:31:19 +02:00
1 parent 9412669e65
commit e2213448ac
42 files changed
+471 -210

No files matched your search

@@ -62,7 +62,8 @@ async function loadCustomLinks(directory: string, container: MedusaContainer) {
const linksSourcePaths = plugins.map((plugin) =>
join(plugin.resolve, "links")
)
const logger = container.resolve(ContainerRegistrationKeys.LOGGER)
const { LinkLoader } = await import("@medusajs/framework")
await new LinkLoader(linksSourcePaths).load()
await new LinkLoader(linksSourcePaths, logger).load()
}