Skip to content

Commit

Permalink
Removed logger from gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
PCloughster committed Aug 16, 2024
1 parent a18ba79 commit 3448a58
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ terraform.tfstate
bin/
dist/
modules-dev/
/pkg/
website/.vagrant
website/.bundle
website/build
Expand Down
29 changes: 29 additions & 0 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package logger

import "log"

type ProviderLogger struct{}

func (l *ProviderLogger) Error(msg string) {
l.log("ERROR", msg)
}

func (l *ProviderLogger) Warn(msg string) {
l.log("WARN", msg)
}

func (l *ProviderLogger) Info(msg string) {
l.log("INFO", msg)
}

func (l *ProviderLogger) Debug(msg string) {
l.log("DEBUG", msg)
}

func (l *ProviderLogger) Trace(msg string) {
l.log("TRACE", msg)
}

func (l *ProviderLogger) log(level string, msg string) {
log.Printf("[%s] %s", level, msg)
}
Binary file modified terraform-provider-accounts
Binary file not shown.

0 comments on commit 3448a58

Please sign in to comment.