diff options
author | Nick White <git@njw.name> | 2020-03-23 14:16:20 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-03-23 14:16:20 +0000 |
commit | e05d7ed7fa25e193d0354f763f5760696ac13d5e (patch) | |
tree | 4f3f6094e71c8a6eeffca64807878379de58e2ff /aws.go | |
parent | 43e1e0b378101d113ab5fe98a0efb67a0615ddc7 (diff) |
Add Log() function to Pipeliner interface
This simplifies things nicely from using conn.GetLogger().Println() to
conn.Log()
Diffstat (limited to 'aws.go')
-rw-r--r-- | aws.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -457,3 +457,9 @@ func (a *AwsConn) StartInstances(n int) error { }) return err } + +// Log records an item in the with the Logger. Arguments are handled +// as with fmt.Println. +func (a *AwsConn) Log(v ...interface{}) { + a.Logger.Println(v) +} |