forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
log.go
25 lines (19 loc) · 543 Bytes
/
log.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package quickfix
//Log is a generic interface for logging FIX messages and events.
type Log interface {
//log incoming fix message
OnIncoming([]byte)
//log outgoing fix message
OnOutgoing([]byte)
//log fix event
OnEvent(string)
//log fix event according to format specifier
OnEventf(string, ...interface{})
}
//The LogFactory interface creates global and session specific Log instances
type LogFactory interface {
//global log
Create() (Log, error)
//session specific log
CreateSessionLog(sessionID SessionID) (Log, error)
}