示例#1
0
文件: common.go 项目: mabetle/mdb
package sqlited

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb/sqlited")
)
示例#2
0
文件: main.go 项目: mabetle/mcore
package main

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("main")
)

func main() {
	mlog.SetTraceLevel()

	logger.Trace("Hello")
	logger.Debug("Hello")
	logger.Info("Hello")
	logger.Warn("Hello")
	logger.Error("Hello")
}
示例#3
0
文件: common.go 项目: mabetle/mcore
package mtml

import (
	"github.com/mabetle/mlog"
)

var logger = mlog.GetLogger("github.com/mabetle/mcore/mtml")
示例#4
0
文件: logger.go 项目: mabetle/mdb
package sql_mysqld

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb/sql_mysqld")
)
示例#5
0
文件: logger.go 项目: mabetle/mcore
package ini

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mconf/ini")
)
示例#6
0
文件: common.go 项目: mabetle/mcore
package mvalid

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mvalid")
)
示例#7
0
文件: common.go 项目: mabetle/mcore
package mapp

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mapp")
)

const (
	V_VENDOR_MABETLE     = "Mabetle"
	V_VENDOR_MABETLE_URL = "http://www.mabetle.com"
	MODE_DEV             = "dev"
)

var (
	VersionMain  = "1"
	VersionMinus = "0"

	VendorName = V_VENDOR_MABETLE
	VendorURL  = V_VENDOR_MABETLE_URL

	LicenseTo = "DEMO"
	RunMode   = "dev"

	AccountSchema = "web_common"
)

var (
	KEY_LICENSE_TO  = "license.to"
示例#8
0
文件: common.go 项目: mabetle/mauth
package mauth

import (
	"github.com/mabetle/mlog"
)

var logger = mlog.GetLogger("github.com/mabetle/mauth")
示例#9
0
文件: common.go 项目: mabetle/mcore
package mpasswd

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mpasswd")
)
示例#10
0
文件: logger.go 项目: mabetle/mdb
package mdb

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb")
)
示例#11
0
package main

import (
	"github.com/mabetle/mlog"
	"github.com/mabetle/mlog/wlog"
)

var (
	mlogApiLogger  = mlog.GetLogger("mlogApiLogger")         // api
	mlogWrapLogger = mlog.GetWrapLogger("mlogWrapLogger")    // mlog
	wlogApiLogger  = wlog.NewLogger("wlogApiLogger", 5)      // api
	wlogWrapLogger = wlog.NewWrapLogger("wlogWrapLogger", 5) //
)

func Demo() {
	mlogWrapLogger.Trace("Hello")
	mlogWrapLogger.Debug("Hello")
	mlogWrapLogger.Info("Hello")
	mlogWrapLogger.Warn("Hello")
	mlogWrapLogger.Error("Hello")

	mlogWrapLogger.Inspect()

	//wlogApiLogger.Error("Hello")
	//wlogWrapLogger.Error("Hello")
}

func main() {
	//mlog.SetTraceLevel()
	mlog.SetDebugLevel()
	//mlog.SetInfoLevel()
示例#12
0
文件: table.go 项目: mabetle/mcell
package xlsxsdb

import (
	"fmt"
	"github.com/mabetle/mcell/wxlsx"
	"github.com/mabetle/mcore/msdb"
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcell/xlsxsdb")
)

// XlsxTable implements msdb.SimpleTable
type XlsxTable struct {
	*msdb.BaseTable
	sheet *wxlsx.Sheet
}

// CheckSimpleTableImpl check
func CheckSimpleTableImpl(file string, sheetName string) (msdb.SimpleTable, error) {
	return NewXlsxTableBySheetName(file, sheetName)
}

// NewSimpleTableBySheetName returns XlsxTable
func NewSimpleTableBySheetName(file string, sheetName string) (*XlsxTable, error) {
	return NewXlsxTableBySheetName(file, sheetName)
}

// NewSimpleTable returns XlsxTable
func NewSimpleTable(file string, sheetIndex int) (*XlsxTable, error) {
示例#13
0
文件: logger.go 项目: mabetle/mdb
package dbconf

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb/dbconf")
)
示例#14
0
文件: common.go 项目: mabetle/mcell
package wxlsx

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcell/wxlsx")
)
示例#15
0
文件: common.go 项目: mabetle/mcore
package mmodel

import (
	"github.com/mabetle/mlog"
)

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mmodel")
)