mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
* Includes mmctl into the mono-repo * Update to use the new public module paths * Adds docs check to the mmctl CI * Fix public utils import path * Tidy up modules * Fix linter * Update CI tasks to use the new file structure * Update CI references
23 lines
369 B
Go
23 lines
369 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package human
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
type SimpleWriter struct {
|
|
out io.Writer
|
|
}
|
|
|
|
func (w *SimpleWriter) Write(e LogEntry) {
|
|
fmt.Fprintln(w.out, e)
|
|
}
|
|
|
|
func NewSimpleWriter(out io.Writer) *SimpleWriter {
|
|
w := new(SimpleWriter)
|
|
w.out = out
|
|
return w
|
|
}
|