Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZerologWriter ¶
type ZerologWriter struct {
// contains filtered or unexported fields
}
func New ¶
func New(output io.Writer, app *newrelic.Application) ZerologWriter
New creates a new NewRelicWriter Object output is the io.Writer destination that you want your log to be written to app must be a vaild, non nil new relic Application
func (*ZerologWriter) DebugLogging ¶
func (zw *ZerologWriter) DebugLogging(enabled bool)
DebugLogging toggles whether error information should be printed to console. By default, this service will fail silently. Enabling debug logging will print error messages on a new line after your log message.
func (*ZerologWriter) WithContext ¶
func (zw *ZerologWriter) WithContext(ctx context.Context) ZerologWriter
WithContext creates a new ZerologWriter for the transaction inside of a context
func (*ZerologWriter) WithTransaction ¶
func (zw *ZerologWriter) WithTransaction(txn *newrelic.Transaction) ZerologWriter
WithTransaction creates a new ZerologWriter for a specific transactions
Click to show internal directories.
Click to hide internal directories.