@@ -30,7 +30,6 @@ var PLACEHOLDER = regexp.MustCompile(`{(\d)}`)
30
30
31
31
type Logger interface {
32
32
Fprintln (w io.Writer , level string , format string , a ... interface {})
33
- UnformattedFprintln (w io.Writer , s string )
34
33
UnformattedWrite (w io.Writer , data []byte )
35
34
Println (level string , format string , a ... interface {})
36
35
Name () string
@@ -53,16 +52,6 @@ func (s *LoggerToCustomStreams) Fprintln(w io.Writer, level string, format strin
53
52
fmt .Fprintln (target , Format (format , a ... ))
54
53
}
55
54
56
- func (s * LoggerToCustomStreams ) UnformattedFprintln (w io.Writer , str string ) {
57
- s .mux .Lock ()
58
- defer s .mux .Unlock ()
59
- target := s .Stdout
60
- if w == os .Stderr {
61
- target = s .Stderr
62
- }
63
- fmt .Fprintln (target , str )
64
- }
65
-
66
55
func (s * LoggerToCustomStreams ) UnformattedWrite (w io.Writer , data []byte ) {
67
56
s .mux .Lock ()
68
57
defer s .mux .Unlock ()
@@ -89,8 +78,6 @@ type NoopLogger struct{}
89
78
90
79
func (s NoopLogger ) Fprintln (w io.Writer , level string , format string , a ... interface {}) {}
91
80
92
- func (s NoopLogger ) UnformattedFprintln (w io.Writer , str string ) {}
93
-
94
81
func (s NoopLogger ) UnformattedWrite (w io.Writer , data []byte ) {}
95
82
96
83
func (s NoopLogger ) Println (level string , format string , a ... interface {}) {}
@@ -111,10 +98,6 @@ func (s AccumulatorLogger) Fprintln(w io.Writer, level string, format string, a
111
98
* s .Buffer = append (* s .Buffer , Format (format , a ... ))
112
99
}
113
100
114
- func (s AccumulatorLogger ) UnformattedFprintln (w io.Writer , str string ) {
115
- * s .Buffer = append (* s .Buffer , str )
116
- }
117
-
118
101
func (s AccumulatorLogger ) UnformattedWrite (w io.Writer , data []byte ) {
119
102
* s .Buffer = append (* s .Buffer , string (data ))
120
103
}
@@ -144,10 +127,6 @@ func (s HumanTagsLogger) Println(level string, format string, a ...interface{})
144
127
s .Fprintln (os .Stdout , level , format , a ... )
145
128
}
146
129
147
- func (s HumanTagsLogger ) UnformattedFprintln (w io.Writer , str string ) {
148
- fprintln (w , str )
149
- }
150
-
151
130
func (s HumanTagsLogger ) UnformattedWrite (w io.Writer , data []byte ) {
152
131
write (w , data )
153
132
}
@@ -170,10 +149,6 @@ func (s HumanLogger) Println(level string, format string, a ...interface{}) {
170
149
s .Fprintln (os .Stdout , level , format , a ... )
171
150
}
172
151
173
- func (s HumanLogger ) UnformattedFprintln (w io.Writer , str string ) {
174
- fprintln (w , str )
175
- }
176
-
177
152
func (s HumanLogger ) UnformattedWrite (w io.Writer , data []byte ) {
178
153
write (w , data )
179
154
}
@@ -196,10 +171,6 @@ func (s MachineLogger) Println(level string, format string, a ...interface{}) {
196
171
printMachineFormattedLogLine (os .Stdout , level , format , a )
197
172
}
198
173
199
- func (s MachineLogger ) UnformattedFprintln (w io.Writer , str string ) {
200
- fprintln (w , str )
201
- }
202
-
203
174
func (s MachineLogger ) Flush () string {
204
175
return ""
205
176
}
0 commit comments