github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/core/logger/record.go (about)

     1  // Copyright 2022 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package logger
     5  
     6  import (
     7  	"time"
     8  
     9  	"github.com/juju/loggo"
    10  	"github.com/juju/version/v2"
    11  )
    12  
    13  // LogRecord defines a single Juju log message as returned by
    14  // LogTailer.
    15  type LogRecord struct {
    16  	// universal fields
    17  	ID   int64
    18  	Time time.Time
    19  
    20  	// origin fields
    21  	ModelUUID string
    22  	Entity    string
    23  	Version   version.Number
    24  
    25  	// logging-specific fields
    26  	Level    loggo.Level
    27  	Module   string
    28  	Location string
    29  	Message  string
    30  	Labels   []string
    31  }