Documentation
¶
Index ¶
- Constants
- Variables
- func ClearNotificationMemoryForTest()
- func Configure(config Config) error
- func Diagnostic(event string, params map[string]any)
- func IsolateNotificationsForTest(dir string) func()
- func LevelLabel(level int) string
- func Log(currentLogLevel int, message string, options ...LogOptions)
- func LogInit(globalLogLevel ...int)
- func OpenProcessLog(home, source string) (io.WriteCloser, error)
- func ParseLevel(s string) (int, error)
- func ProcessFinished(ctx context.Context, cmd *exec.Cmd, operation string, started time.Time, ...)
- func ProcessTermination(pid int, operation, reason string)
- func ReadLast(n int) ([]string, error)
- func RecordNotification(level, message string)
- func RecordNotificationAtForTest(date, level, message string)
- func RedactReport(text string) string
- func ReleaseLogDatabase(home string) error
- func ReportLogs() (string, error)
- func ReportStamp() string
- func RequestID(ctx context.Context) string
- func SetGlobalLevel(level int) error
- func WithRequestID(ctx context.Context, id string) context.Context
- type Config
- type LogOptions
- type Notification
Constants ¶
View Source
const CYAN = "\033[96m"
View Source
const DEBUG_LOG_LEVEL = 3
View Source
const END = "\033[0m"
View Source
const ERROR_LOG_LEVEL = 0
View Source
const GRAY = "\033[90m"
View Source
const GREEN = "\033[92m"
View Source
const INFO_LOG_LEVEL = 2
View Source
const MAGENTA = "\033[95m"
View Source
const RED = "\033[91m"
View Source
const RESULT_LOG_LEVEL = 4
View Source
const ReportByteLimit = 48 * 1024
View Source
const ReportLogByteLimit = 32 * 1024
View Source
const ReportNoteLimit = 500
View Source
const WARNING_LOG_LEVEL = 1
View Source
const YELLOW = "\033[93m"
Variables ¶
View Source
var GLOBAL_LOG_LEVEL = -1
Functions ¶
func ClearNotificationMemoryForTest ¶ added in v2026.1011.0
func ClearNotificationMemoryForTest()
func Diagnostic ¶ added in v2026.1114.0
func IsolateNotificationsForTest ¶ added in v2026.1011.0
func IsolateNotificationsForTest(dir string) func()
func LevelLabel ¶
func Log ¶
func Log(currentLogLevel int, message string, options ...LogOptions)
func OpenProcessLog ¶ added in v2026.1121.0
func OpenProcessLog(home, source string) (io.WriteCloser, error)
func ParseLevel ¶
func ProcessFinished ¶ added in v2026.1114.0
func ProcessTermination ¶ added in v2026.1114.0
func RecordNotification ¶ added in v2026.1011.0
func RecordNotification(level, message string)
RecordNotification keeps system output and GUI errors independently of chat transcripts.
func RecordNotificationAtForTest ¶ added in v2026.1011.0
func RecordNotificationAtForTest(date, level, message string)
func RedactReport ¶ added in v2026.1020.0
func ReleaseLogDatabase ¶ added in v2026.1121.0
func ReportLogs ¶ added in v2026.1020.0
func ReportStamp ¶ added in v2026.1020.0
func ReportStamp() string
func SetGlobalLevel ¶
Types ¶
type LogOptions ¶
type Notification ¶ added in v2026.1011.0
type Notification struct {
ID string `json:"id"`
CreatedAt string `json:"createdAt"`
Level string `json:"level"`
Message string `json:"message"`
}
func ReadNotifications ¶ added in v2026.1011.0
func ReadNotifications() ([]Notification, error)
ReadNotifications includes every available historical log, not just today's file.
Click to show internal directories.
Click to hide internal directories.