Skip to content

Commit

Permalink
Merge pull request #385 from dhuckins/logger
Browse files Browse the repository at this point in the history
added interface for logger
  • Loading branch information
gianarb authored Dec 24, 2021
2 parents 9c3076f + 21719b7 commit d303350
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 0 additions & 5 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"errors"
"fmt"
"io"
"log"
"os"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
Expand All @@ -16,9 +14,6 @@ import (
"github.com/testcontainers/testcontainers-go/wait"
)

// Logger is the default log instance
var Logger = log.New(os.Stderr, "", log.LstdFlags)

// DeprecatedContainer shows methods that were supported before, but are now deprecated
// Deprecated: Use Container
type DeprecatedContainer interface {
Expand Down
14 changes: 14 additions & 0 deletions logger.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package testcontainers

import (
"log"
"os"
)

// Logger is the default log instance
var Logger Logging = log.New(os.Stderr, "", log.LstdFlags)

// Logging defines the Logger interface
type Logging interface {
Printf(format string, v ...interface{})
}

0 comments on commit d303350

Please sign in to comment.