// setupLogger - Configure logging for the server func setupLogger(r *gin.Engine) { // Configure logger zlog := applogger.GetInstance() r.Use(logger.SetLogger(logger.Config{ Logger: zlog, UTC: true, })) } code example
Example: python logging to console exqmple
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))