func (log *Logger) Debug(format string, v ...interface{}) {
	if log._LogLevel <= LEVEL_DEBUG {
		log.Log(os.Stdout, LEVEL_DEBUG, fmt.Sprintf(format, v...))
	}
}
print debug log
package log
import (
	"io"
	"fmt"
	"os"
	"github.com/biezhi/agon/color"
	"time"
	"strings"
)
type Level int
type Logger struct {
	_TimePattern string
	_LogPath     string
	_LogLevel    Level
	_LogColor    map[Level]int
	_TextColor   int
	_Prefix      string
}
func (log *Logger) Prefix(Prefix string) *Logger {
	log._Prefix = Prefix
	return log
}
func (log *Logger) LogPath(LogPath string) *Logger {
	log._LogPath = LogPath
	return log
}
func (log *Logger) TimePattern(TimePattern string) *Logger {
	log._TimePattern = TimePattern
	return log
}
func (log *Logger) TextColor(TextColor int) *Logger {
	log._TextColor = TextColor
	return log
}
func (log *Logger) LogColor(LogColor map[Level]int) *Logger {
	log._LogColor = LogColor
	return log
}
const (
	LEVEL_DEBUG = iota
	LEVEL_TRACE
	LEVEL_INFO
	LEVEL_WARN
	LEVEL_ERROR
)
func NewLog() *Logger {
	log := &Logger{}
	log._TimePattern = "01/02 15:04:05.000"
	log._LogLevel = LEVEL_DEBUG
	return log
}
func (log *Logger) Info(format string, v ...interface{}) {
	if log._LogLevel <= LEVEL_INFO {
		log.Log(os.Stdout, LEVEL_INFO, fmt.Sprintf(format, v...))
	}
}
func (log *Logger) Trace(format string, v ...interface{}) {
	if log._LogLevel <= LEVEL_TRACE {
		log.Log(os.Stdout, LEVEL_TRACE, fmt.Sprintf(format, v...))
	}
}