Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogTypeTTY = "console" LogTypeJSON = "json" LogTypeGCP = "gcp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentName ¶
type ComponentName string
var ( ComponentMain ComponentName = "main" ComponentAPI ComponentName = "api" ComponentStorage ComponentName = "redis" ComponentParser ComponentName = "parser" ComponentCollector ComponentName = "collector" ComponentSubscribeEvent ComponentName = "SubscribeEvent" ComponentExecutor ComponentName = "executor" ComponentDemultiplexer ComponentName = "demultiplexer" ComponentHLFStreamsPool ComponentName = "hlf steams pool" ComponentHealth ComponentName = "healthcheck" ComponentService ComponentName = "service" ComponentProducer ComponentName = "producer" )
type Labels ¶
type Labels struct { Version string Component ComponentName UserName string OrgName string Channel string }
type SyncLoggerMethod ¶
type SyncLoggerMethod = func() error
func CreateLogger ¶
func CreateLogger(loggerType, logLevel string) (glog.Logger, SyncLoggerMethod, error)
Click to show internal directories.
Click to hide internal directories.