WithFormat sets the log output format. - FormatJSON: Structured JSON output - FormatText: Human-readable text format
(format Format)
| 66 | // - FormatJSON: Structured JSON output |
| 67 | // - FormatText: Human-readable text format |
| 68 | func WithFormat(format Format) Option { |
| 69 | return func(c *config) { |
| 70 | c.format = format |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // WithTimestampFormat sets a custom timestamp format for log entries. |
| 75 | // Use Go's standard time package constants (time.RFC3339, time.DateTime, etc.) |
no outgoing calls
searching dependent graphs…