Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsJSON (0.03 sec)

  1. internal/logger/target/console/console.go

    	return "console"
    }
    
    // Send log message 'e' to console
    func (c *Target) Send(e any) error {
    	entry, ok := e.(log.Entry)
    	if !ok {
    		return fmt.Errorf("Uexpected log entry structure %#v", e)
    	}
    	if logger.IsJSON() {
    		logJSON, err := json.Marshal(&entry)
    		if err != nil {
    			return err
    		}
    		fmt.Fprintln(c.output, string(logJSON))
    		return nil
    	}
    
    	if entry.Level == logger.EventKind {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top