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
Replace #if DEBUG in Logger for controlling debug levels.
You currently have “#if DEBUG” deciding the log filename. You might prefer appsetting-based or environment-based toggles (e.g., “--configuration Debug vs. Release”), or rely on a proper logging framework for deciding how to log in production versus development.
Consider structured logging.
Storing key data (e.g., file paths, time taken to copy) as structured fields can make logs far more meaningful and machine-queryable (e.g., sending JSON logs to centralized platforms).
Is there an existing issue for this?
Proposal
Replace
#if DEBUGinLoggerfor controlling debug levels.#if DEBUG” deciding the log filename. You might prefer appsetting-based or environment-based toggles (e.g., “--configuration Debug vs. Release”), or rely on a proper logging framework for deciding how to log in production versus development.Consider structured logging.