Exemple #1
0
package sqlited

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb/sqlited")
)
Exemple #2
0
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")
}
Exemple #3
0
package mtml

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

var logger = mlog.GetLogger("github.com/mabetle/mcore/mtml")
Exemple #4
0
package sql_mysqld

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb/sql_mysqld")
)
Exemple #5
0
package ini

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mconf/ini")
)
Exemple #6
0
package mvalid

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mvalid")
)
Exemple #7
0
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"
Exemple #8
0
package mauth

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

var logger = mlog.GetLogger("github.com/mabetle/mauth")
Exemple #9
0
package mpasswd

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mcore/mpasswd")
)
Exemple #10
0
package mdb

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb")
)
Exemple #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()
Exemple #12
0
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) {
Exemple #13
0
package dbconf

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mdb/dbconf")
)
Exemple #14
0
package wxlsx

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

var (
	logger = mlog.GetLogger("github.com/mabetle/mcell/wxlsx")
)
Exemple #15
0
package mmodel

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

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