package rpc import ( "testing" "github.com/davyxu/cellnet" "github.com/davyxu/cellnet/proto/coredef" "github.com/davyxu/cellnet/rpc" "github.com/davyxu/cellnet/socket" "github.com/davyxu/cellnet/test" "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("test") var signal *test.SignalTester func server() { pipe := cellnet.NewEventPipe() p := socket.NewAcceptor(pipe).Start("127.0.0.1:7201") rpc.InstallServer(p) rpc.RegisterMessage(p, coredef.TestEchoACK{}, func(resp rpc.Response, content interface{}) { msg := content.(*coredef.TestEchoACK) log.Debugln("server recv:", msg.String()) resp.Feedback(&coredef.TestEchoACK{ Content: msg.String(),
package socket import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("socket")
package gate import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("gate")
package scanner import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("scanner")
import ( "bufio" "flag" "fmt" "os" "github.com/davyxu/golog" "github.com/davyxu/tabtoy/exportorv1" "github.com/davyxu/tabtoy/exportorv1/data" "github.com/davyxu/tabtoy/exportorv2" "github.com/davyxu/tabtoy/exportorv2/i18n" "github.com/davyxu/tabtoy/exportorv2/printer" ) var log *golog.Logger = golog.New("main") // 显示版本号 var paramVersion = flag.Bool("version", false, "Show version") // 工作模式 var paramMode = flag.String("mode", "", "mode: exportorv1, exportorv2") // 并发导出,提高导出速度, 输出日志会混乱 var paramPara = flag.Bool("para", false, "parallel export by your cpu count") // ============================v1 版本参数============================ // 开启调试信息 var paramDebugLevel = flag.Int("debug", 0, "[v1] show debug info")
package data import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("data") // 级别越高,可见信息越多(0~5) var DebuggingLevel int
package router import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("router") // 开启调试模式, 将显示完整的路由日志 var DebugMode bool
package printer import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("printer")
package cellnet import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("cellnet")
package exportor import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("exportor")
package mgo import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("mgo")
package pbmeta import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("pbmeta")
package filter import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("filter")
package model import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("model") const TypeSheetName = "@Types"
package db import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("db")
package rpc import ( "github.com/davyxu/golog" ) var log *golog.Logger = golog.New("rpc")