gitea

module
v0.0.0-...-a95e4bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: MIT

README

gitea

it's forked from gitea, only contains log module

How to use?

/*
Simple Document For Log:
mode: "console" or "file"
log levels:
    0 - TRACE
    1 - DEBUG
    2 - INFO
    3 - WARN
    4 - ERROR
    5 - CRITICAL
    6 - FATAL
filename: log file path
*/

package main

import "github.com/djwackey/gitea/log"

func main() {
    mode := "console"

    config := `{"level":0,"filename":"test.log"}`
    log.NewLogger(0, mode, config)

    log.Info("Hello World")
    log.Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL