// SetWriter forces (enabled) logs to be written to the given writer.
SetWriter forces (enabled) logs to be written to the given writer.
// SetWriter forces ( enabled ) logs to be written to the given writer .
func SetWriter(writer io.Writer) {
	oldWriter := logEnabled.writer
	logEnabled.writer = writer
	if cache, isCache := oldWriter.(*logCache); isCache {
		cache.Flush(logEnabled)
	}
}
func SetWriter ( writer io . Writer ) { oldWriter := logEnabled . writer logEnabled . writer = writer if cache , isCache := oldWriter . ( * logCache ) ; isCache { cache . Flush ( logEnabled ) } }
SetWriter forces (enabled) logs to be written to the given writer.
SetWriter forces ( enabled ) logs to be written to the given writer .