Accessing --log-level Option for File Logger in Effect CLI
How to access --log-level CLI option value for file logger filtering I have an Effect CLI application with a global command that has a --logfile option. When this option is provided, I want to write logs to a file instead of the console, and respect the --log-level option for filtering:
Example CLI invocation:
The problem is that FiberRef.get(FiberRef.currentLogLevel) returns INFO even when --log-level=debug is passed. I suspect this is because I'm reading it too early, before the CLI runtime applies the log level layer. How can I access the --log-level value configured by the Effect CLI to pass it to Logger.minimumLogLevel() for the file logger?
Any helps would be apreciated

Example CLI invocation:
The problem is that FiberRef.get(FiberRef.currentLogLevel) returns INFO even when --log-level=debug is passed. I suspect this is because I'm reading it too early, before the CLI runtime applies the log level layer. How can I access the --log-level value configured by the Effect CLI to pass it to Logger.minimumLogLevel() for the file logger?
Any helps would be apreciated
