FOutf prints stuff to the given writer.
(w io.Writer, color Color, s string, args ...any)
| 146 | |
| 147 | // FOutf prints stuff to the given writer. |
| 148 | func (l *Logger) FOutf(w io.Writer, color Color, s string, args ...any) { |
| 149 | if len(args) == 0 { |
| 150 | s, args = "%s", []any{s} |
| 151 | } |
| 152 | if !l.Color { |
| 153 | color = None |
| 154 | } |
| 155 | print := color() |
| 156 | print(w, s, args...) |
| 157 | } |
| 158 | |
| 159 | // VerboseOutf prints stuff to STDOUT if verbose mode is enabled. |
| 160 | func (l *Logger) VerboseOutf(color Color, s string, args ...any) { |
no outgoing calls