Add log method to Runtime
This commit is contained in:
parent
2a61b241a8
commit
eed44d12ba
@ -578,3 +578,16 @@ func (rt *Runtime) abortIfAlreadyValidated() {
|
|||||||
}
|
}
|
||||||
rt.callerValidated = true
|
rt.callerValidated = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (rt *Runtime) Log(level vmr.LogLevel, msg string, args ...interface{}) {
|
||||||
|
switch level {
|
||||||
|
case vmr.DEBUG:
|
||||||
|
log.Debugf(msg, args)
|
||||||
|
case vmr.INFO:
|
||||||
|
log.Infof(msg, args)
|
||||||
|
case vmr.WARN:
|
||||||
|
log.Warnf(msg, args)
|
||||||
|
case vmr.ERROR:
|
||||||
|
log.Errorf(msg, args)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user