summaryrefslogtreecommitdiff
path: root/aws.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-03-23 14:16:20 +0000
committerNick White <git@njw.name>2020-03-23 14:16:20 +0000
commite05d7ed7fa25e193d0354f763f5760696ac13d5e (patch)
tree4f3f6094e71c8a6eeffca64807878379de58e2ff /aws.go
parent43e1e0b378101d113ab5fe98a0efb67a0615ddc7 (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.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/aws.go b/aws.go
index 359c0be..87654c0 100644
--- a/aws.go
+++ b/aws.go
@@ -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)
+}