Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 310 Bytes

Readme.md

File metadata and controls

14 lines (12 loc) · 310 Bytes

Usage

    srv := echo.New()
    fp, err := os.OpenFile("/var/log/echo/access.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
    if err != nil {
        panic(err)
    }

    logger := echo_alp_logger.LoggerWithConfig(echo_alp_logger.LoggerConfig{
        Output: fp,
    })

    srv.Use(logger)