mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-24 15:55:17 -04:00
deps: convert zap to slog (#2825)
This commit is contained in:
parent
3765cb0762
commit
54cce77bab
182 changed files with 1474 additions and 1509 deletions
|
@ -1240,15 +1240,21 @@ type tfContextLogger struct {
|
|||
ctx context.Context // bind context to struct to satisfy interface
|
||||
}
|
||||
|
||||
func (l *tfContextLogger) Debugf(format string, args ...any) {
|
||||
// Debug takes a format string and arguments as an input and logs
|
||||
// them using tflog.Debug.
|
||||
func (l *tfContextLogger) Debug(format string, args ...any) {
|
||||
tflog.Debug(l.ctx, fmt.Sprintf(format, args...))
|
||||
}
|
||||
|
||||
func (l *tfContextLogger) Infof(format string, args ...any) {
|
||||
// Info takes a format string and arguments as an input and logs
|
||||
// them using tflog.Info.
|
||||
func (l *tfContextLogger) Info(format string, args ...any) {
|
||||
tflog.Info(l.ctx, fmt.Sprintf(format, args...))
|
||||
}
|
||||
|
||||
func (l *tfContextLogger) Warnf(format string, args ...any) {
|
||||
// Warn takes a format string and arguments as an input and logs
|
||||
// them using tflog.Warn.
|
||||
func (l *tfContextLogger) Warn(format string, args ...any) {
|
||||
tflog.Warn(l.ctx, fmt.Sprintf(format, args...))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue