You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: TS2322 [ERROR]: Type 'import("https://deno.land/[email protected]/log/logger.ts").Logger' is not assignable to type 'import("https://deno.land/[email protected]/log/logger.ts").Logger'.
Property '#level' in type 'Logger' refers to a different member that cannot be accessed from within type 'Logger'.
await mysql.configLogger({ logger: logger() });
~~~~~~
at file:///.../db.ts:8:28
The expected type comes from property 'logger' which is declared here on type 'LoggerConfig'
logger?: log.Logger;
~~~~~~
at https://deno.land/x/[email protected]/src/logger.ts:22:3
This parameter was not documented, but I assumed it was intended to be used like above. Is there a way to build it in some way that it is not so strict on the version incompatibility?
The text was updated successfully, but these errors were encountered:
derun-info
changed the title
Using custom logger fails compilation
Using custom logger fails compilation due to version mismatch of the LoggerAug 6, 2023
When trying to plug in a custom logger from
std/log
this error happens.This parameter was not documented, but I assumed it was intended to be used like above. Is there a way to build it in some way that it is not so strict on the version incompatibility?
The text was updated successfully, but these errors were encountered: