# apache/nuttx nuttx-13.1.0 drivers/syslog/vsyslog.c nx_vsyslog(): "[%5jd.%06ld] " "[CPU%d] " "[%2d] " "[%6s] " "[%s] " "%s: ", each an option
# Documentation/platforms/arm/qemu/boards/qemu-armv7a/index.rst at nuttx-13.1.0: stamp, process ID, priority and prefix
[    0.000000] [ 0] [  INFO] [server] pci_register_rptun_ivshmem_driver: Register ivshmem driver, id=0, cpuname=proxy, master=0 ⇒ {"rule": "nuttx+kv", "level": "info", "name": "server", "device_ns": 0, "message": "[server] pci_register_rptun_ivshmem_driver: Register ivshmem driver, id=0, cpuname=proxy, master=0", "body": "pci_register_rptun_ivshmem_driver: Register ivshmem driver, id=0, cpuname=proxy, master=0", "prefixed": true}
[    0.306127] [ 3] [  INFO] [server] rptun_ivshmem_probe: Start the wdog ⇒ {"rule": "nuttx", "level": "info", "name": "server", "device_ns": 306127000, "message": "[server] rptun_ivshmem_probe: Start the wdog", "body": "rptun_ivshmem_probe: Start the wdog"}
[    0.000000] [ 0] [  INFO] [proxy] pci_register_rptun_ivshmem_driver: Register ivshmem driver, id=0, cpuname=server, master=1 ⇒ {"rule": "nuttx+kv", "level": "info", "name": "proxy", "device_ns": 0, "message": "[proxy] pci_register_rptun_ivshmem_driver: Register ivshmem driver, id=0, cpuname=server, master=1"}
[    0.314039] [ 3] [  INFO] [proxy] ivshmem_probe: shmem addr=0x10400000 size=4194304 reg=0x10008000 ⇒ {"rule": "nuttx+kv", "level": "info", "name": "proxy", "device_ns": 314039000, "message": "[proxy] ivshmem_probe: shmem addr=0x10400000 size=4194304 reg=0x10008000"}
# apache/nuttx 0dcbf44 Documentation/os/drivers/special/rpmsg/rpmsg_ping.rst
[   44.250700] [26] [  INFO] [ap] current CPU freq: 1000000, ping times: 100 ⇒ {"rule": "nuttx", "level": "info", "name": "ap", "device_ns": 44250700000, "message": "[ap] current CPU freq: 1000000, ping times: 100"}
[   44.251000] [26] [  INFO] [ap] avg: s 0, ns 11102000 ⇒ {"rule": "nuttx", "level": "info", "name": "ap", "device_ns": 44251000000, "message": "[ap] avg: s 0, ns 11102000", "body": "avg: s 0, ns 11102000"}
[   44.251100] [26] [  INFO] [ap] min: s 0, ns 10182000 ⇒ {"rule": "nuttx", "level": "info", "name": "ap", "message": "[ap] min: s 0, ns 10182000"}
# g_priority_str, right-aligned by "%6s"
# constructed [   12.000001] [ 2] [ ERROR] [app] nsh_main: mount failed ⇒ {"rule": "nuttx", "level": "error", "name": "app", "device_ns": 12000001000, "message": "[app] nsh_main: mount failed", "body": "nsh_main: mount failed"}
# constructed [   12.000001] [ 2] [  WARN] nsh_main: low memory ⇒ {"rule": "nuttx", "level": "warn", "name": "", "message": "nsh_main: low memory"}
# constructed [   12.000001] [ 2] [ DEBUG] nsh_main: retries=3 ⇒ {"rule": "nuttx+kv", "level": "debug", "name": "", "message": "nsh_main: retries=3", "values": [["retries", 3, null]]}
# constructed [   12.000001] [ 2] [NOTICE] nsh_main: notice ⇒ {"rule": "nuttx", "level": "info", "leveled": true, "name": "", "message": "nsh_main: notice"}
# constructed [   12.000001] [ 2] [  CRIT] nsh_main: critical ⇒ {"rule": "nuttx", "level": "critical", "name": "", "message": "nsh_main: critical"}
# constructed [   12.000001] [ 2] [ ALERT] nsh_main: alert ⇒ {"rule": "nuttx", "level": "critical", "name": "", "message": "nsh_main: alert"}
# constructed [   12.000001] [ 2] [ EMERG] nsh_main: emergency ⇒ {"rule": "nuttx", "level": "critical", "name": "", "message": "nsh_main: emergency"}
# constructed [   12.000001] [CPU1] [ 2] [  INFO] nsh_main: smp ⇒ {"rule": "nuttx", "level": "info", "name": "", "device_ns": 12000001000, "message": "nsh_main: smp"}
# constructed [  999.999999] [123] [  WARN] hpwork: late ⇒ {"rule": "nuttx", "level": "warn", "name": "", "device_ns": 999999999000, "message": "hpwork: late"}
# SYSLOG_TIMESTAMP_MS prints milliseconds
# constructed [   12.123] [  INFO] nsh_main: millisecond stamp ⇒ {"rule": "nuttx", "level": "info", "name": "", "device_ns": 12123000000, "message": "nsh_main: millisecond stamp"}
# SYSLOG_TIMESTAMP_REALTIME prints the wall clock, bare or by SYSLOG_TIMESTAMP_FORMAT's default "%d/%m/%y %H:%M:%S" with microseconds
# constructed [1792606444.123456] [  INFO] nsh_main: wall clock ⇒ {"rule": "nuttx", "level": "info", "name": "", "device_ns": null, "message": "nsh_main: wall clock"}
# constructed [21/10/26 17:22:15.123456] [  INFO] nsh_main: formatted wall clock ⇒ {"rule": "nuttx", "level": "info", "name": "", "device_ns": null, "message": "nsh_main: formatted wall clock"}
# without a priority, the CPU or the process ID marks the line
# constructed [    3.500000] [ 7] nsh_main: started ⇒ {"rule": "nuttx", "level": "info", "leveled": false, "name": "", "device_ns": 3500000000, "message": "nsh_main: started"}
# constructed [    3.500000] [CPU0] [ 7] [proxy] up ⇒ {"rule": "nuttx", "level": "info", "leveled": false, "name": "proxy", "message": "[proxy] up", "body": "up"}
# constructed [CPU1] [ 7] [  INFO] nsh_main: no stamp ⇒ {"rule": "nuttx", "level": "info", "name": "", "device_ns": null, "message": "nsh_main: no stamp"}
# constructed [ 7] [ ERROR] nsh_main: no stamp ⇒ {"rule": "nuttx", "level": "error", "name": "", "device_ns": null, "message": "nsh_main: no stamp"}

# With only SYSLOG_TIMESTAMP, or with SYSLOG_PREFIX too, the line is the kernel's form
[  175.584700] [remote] avg: s 0, ns 11102000 ⇒ {"rule": "linux", "level": "info", "name": "kernel", "device_ns": 175584700000, "message": "[remote] avg: s 0, ns 11102000"}
[    0.000000] Booting Linux on physical CPU 0x0 ⇒ {"rule": "linux", "level": "info", "name": "kernel", "message": "Booting Linux on physical CPU 0x0"}
[    0.000000][    T0] Booting Linux on physical CPU 0x0 ⇒ {"rule": "linux", "level": "info", "name": "kernel", "message": "[    T0] Booting Linux on physical CPU 0x0"}
# constructed [    2.123456] [drm] Initialized i915 1.6.0 for 0000:00:02.0 on minor 0 ⇒ {"rule": "linux", "level": "info", "name": "kernel", "message": "[drm] Initialized i915 1.6.0 for 0000:00:02.0 on minor 0"}
# a priority with nothing before it is a layout the general rule reads
# constructed [  INFO] nsh_main: no timestamp ⇒ {"rule": "level-word", "level": "info", "name": "nsh_main", "message": "no timestamp"}
# vsyslog_rfc5424.c with SYSLOG_RFC5424 is RFC 5424, which the syslog reader reads
# constructed <14>1 - - - - - - rfc5424 with no options ⇒ {"rule": "syslog", "level": "info", "message": "rfc5424 with no options"}
# constructed <11>1 2026-10-21T17:22:15.123456Z - nsh_main 5 - - rfc5424 error ⇒ {"rule": "syslog", "level": "error", "name": "nsh_main", "message": "rfc5424 error"}
# PX4 v1.17.0 platforms/common/px4_log.cpp px4_log_modulename(): "%-5s [%s] ", which the layout rule reads; docs/en/simulation/ros_interface.md
INFO  [px4] instance: 0 ⇒ {"rule": "level-word", "level": "info", "name": "px4", "message": "instance: 0"}
INFO  [init] found model autostart file as SYS_AUTOSTART=10016 ⇒ {"rule": "level-word+kv", "level": "info", "name": "init", "message": "found model autostart file as SYS_AUTOSTART=10016"}
INFO  [simulator_mavlink] Waiting for simulator to accept connection on TCP port 4560 ⇒ {"rule": "level-word", "level": "info", "name": "simulator_mavlink", "message": "Waiting for simulator to accept connection on TCP port 4560"}
# constructed WARN  [health_and_arming_checks] Preflight Fail: Accel 0 uncalibrated ⇒ {"rule": "level-word", "level": "warn", "name": "health_and_arming_checks", "message": "Preflight Fail: Accel 0 uncalibrated"}
# constructed ERROR [ekf2] GPS fusion timeout ⇒ {"rule": "level-word", "level": "error", "name": "ekf2", "message": "GPS fusion timeout"}
# constructed PANIC [commander] fatal ⇒ {"rule": "level-word", "level": "critical", "name": "commander", "message": "fatal"}
# constructed DEBUG [navigator] mission item 3 ⇒ {"rule": "level-word", "level": "debug", "name": "navigator", "message": "mission item 3"}
# platforms/nuttx/src/px4/common/board_crashdump.c: a message with no syslog prefix
# constructed [boot] There is a hard fault logged. Hold down the SPACE BAR, while booting to review! ⇒ {"rule": "plain", "level": "info", "message": "[boot] There is a hard fault logged. Hold down the SPACE BAR, while booting to review!"}
# vsyslog.c prints the process ID `%2d`: no zero in front and no padding past two; the kernel's numbers
# in brackets are its own
# constructed [   45.123470] [00000000] *pgd=00000000 ⇒ {"rule": "linux", "level": "info", "name": "kernel", "message": "[00000000] *pgd=00000000"}
# constructed [ 1234.567890] [   1234]     0  1234     4321      200   45056        0             0 pumpd ⇒ {"rule": "linux", "level": "info", "name": "kernel", "message": "[   1234]     0  1234     4321      200   45056        0             0 pumpd"}
# constructed [    3.500000] [ 0] idle ⇒ {"rule": "nuttx", "level": "info", "name": "", "device_ns": 3500000000, "message": "idle"}
