From e05d7ed7fa25e193d0354f763f5760696ac13d5e Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 23 Mar 2020 14:16:20 +0000 Subject: Add Log() function to Pipeliner interface This simplifies things nicely from using conn.GetLogger().Println() to conn.Log() --- aws.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'aws.go') 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) +} -- cgit v1.2.1-24-ge1ad