Files
gocryptotrader/log/sublogger_types.go
Luis Rascão 4531fdcb4a exchanges/websocket: Expose Trades/Fills feed through data channel (#814)
* Expose trade feed websocket exchange data through data channel

Most relevant to applications that import GCT as a lib, this allows
them to (through configuration, disabled by default) receive trade data
through the data channel similarly to the orderbook feed.

* exchanges: allow exposure of trade websocket feed through data channel

* Expose fill feed websocket abstracted exchange data through data channel

* exchanges: allow exposure of fill websocket feed through data channel
2021-10-28 10:25:15 +11:00

48 lines
1.0 KiB
Go

package log
import "io"
// Global vars related to the logger package
var (
subLoggers = map[string]*SubLogger{}
Global *SubLogger
BackTester *SubLogger
ConnectionMgr *SubLogger
CommunicationMgr *SubLogger
APIServerMgr *SubLogger
ConfigMgr *SubLogger
DatabaseMgr *SubLogger
DataHistory *SubLogger
GCTScriptMgr *SubLogger
OrderMgr *SubLogger
PortfolioMgr *SubLogger
SyncMgr *SubLogger
TimeMgr *SubLogger
WebsocketMgr *SubLogger
EventMgr *SubLogger
DispatchMgr *SubLogger
RequestSys *SubLogger
ExchangeSys *SubLogger
GRPCSys *SubLogger
RESTSys *SubLogger
Ticker *SubLogger
OrderBook *SubLogger
Trade *SubLogger
Fill *SubLogger
)
// logFields is used to store data in a non-global and thread-safe manner
// so logs cannot be modified mid-log causing a data-race issue
type logFields struct {
info bool
warn bool
debug bool
error bool
name string
output io.Writer
logger Logger
}