The following code will writes both gin's logs and logs from log/slog into a single file. The example also uses lumberjack to implement the log rotation mechanism.
NOTE: When using this configuration the console logs will not show colors
package main
import (