func (l *Logger) Write(ctx context.Context, e Event) {
	// if a formater or the output are unset, bail.
	if l.Formatter == nil || l.Output == nil {
		return
	}

	if IsSkipWrite(ctx) {
		return
	}
	if !l.Writable.IsEnabled(e.GetFlag()) {
		return
	}
	if !l.WritableScopes.IsEnabled(GetPath(ctx)...) {
		return
	}

	err := l.Formatter.WriteFormat(ctx, l.Output, e)
	if err != nil && l.Errors != nil {
		l.Errors <- err
	}
}
// Write writes an event synchronously to the writer either as a normal even or as an error.
Write writes an event synchronously to the writer either as a normal even or as an error.
// Write writes an event synchronously to the writer either as a normal even or as an error .
func (l *Logger) Write(ctx context.Context, e Event) {
	if l.Formatter == nil || l.Output == nil {
		return
	}
	if IsSkipWrite(ctx) {
		return
	}
	if !l.Writable.IsEnabled(e.GetFlag()) {
		return
	}
	if !l.WritableScopes.IsEnabled(GetPath(ctx)...) {
		return
	}
	err := l.Formatter.WriteFormat(ctx, l.Output, e)
	if err != nil && l.Errors != nil {
		l.Errors <- err
	}
}
func ( l * Logger ) Write ( ctx context . Context , e Event ) { if l . Formatter == nil || l . Output == nil { return } if IsSkipWrite ( ctx ) { return } if ! l . Writable . IsEnabled ( e . GetFlag ( ) ) { return } if ! l . WritableScopes . IsEnabled ( GetPath ( ctx ) ... ) { return } err := l . Formatter . WriteFormat ( ctx , l . Output , e ) if err != nil && l . Errors != nil { l . Errors <- err } }
Write writes an event synchronously to the writer either as a normal even or as an error.
Write writes an event synchronously to the writer either as a normal even or as an error .
// if a formater or the output are unset, bail.