Open forbesus opened 2 weeks ago
would you check this pr? @ygrishajev
all things are completed @ygrishajev
how about now? @ygrishajev
so I have
LOG_LEVEL=debug
but it's not picked up by config in the browser. I think config needs to be provided to the LoggerService constructor.
i am not sure what this meaning exactly could you tell me more detail?
@forbesus LOG_LEVEL is an env var
LOG_LEVEL: z.enum(["fatal", "error", "warn", "info", "debug", "trace"]).optional().default("info"),
which controls which logs are done. It is a great way to configure logger on the backend, but it wouldn't work in most frontend implementations.
So LoggerService should probably implement both env vars and config object as param in constructor.
how about now? @ygrishajev
please check again @ygrishajev
how about now? @ygrishajev
ref #436