IceWhaleTech / ZimaOS

679 stars 44 forks source link

Persist OS logs #14

Open scottharman opened 11 months ago

scottharman commented 11 months ago

We don't have access to any boot or diagnotic logs that we can use to diagnose or report any issues in the OS or hardware interfaces.

Sample logs that we can see:

/var/log/lastlog:

xretty2

log.log

2023-12-08T01:57:27.267Z    info    CPU thermal zone found: x86_pkg_temp, path: /sys/devices/virtual/thermal/thermal_zone1. {"func": "service.GetCPUThermalZone", "file": "/home/runner/work/ZimaOS/ZimaOS/service/system.go", "line": 514}
2023-12-08T01:57:27.307Z    info    Notified systemd that casaos main service is ready  {"func": "main.main", "file": "/home/runner/work/ZimaOS/ZimaOS/main.go", "line": 212}
2023-12-08T01:57:27.307Z    info    CasaOS main service is listening... {"address": "127.0.0.1:46753", "func": "main.main", "file": "/home/runner/work/ZimaOS/ZimaOS/main.go", "line": 228}
2023-12-08T01:57:28.392Z    info    network {"network": [{"Type":3,"Raw":"\"58c98612334d5e3a\"","Str":"58c98612334d5e3a","Num":0,"Index":252,"Indexes":null}], "func": "v1.CheckNetwork", "file": "/home/runner/work/ZimaOS/ZimaOS/route/v1/zerotier.go", "line": 135}
2023-12-08T01:57:28.392Z    info    joined  {"joined": true, "networkId": "58c98612334d5e3a", "address": "", "ip": "10.242.0.1", "func": "v1.CheckNetwork", "file": "/home/runner/work/ZimaOS/ZimaOS/route/v1/zerotier.go", "line": 140}

image

No dmesg or message log.