; Log to stdout only — Docker's json-file driver captures it and the host ; Alloy ships it to Loki as job=. Writing to a file inside ; the container would put the logs where nothing can see them. [general] dateformat = %F %T ; Colour is disabled in asterisk.conf (`nocolor = yes`), not here — Asterisk ; colourises the console by default and the escape codes travel through Docker ; into Loki, where every line arrives wrapped in \x1b[0;30m. That file must be ; mounted for the setting to take effect. [logfiles] ; Warnings and errors only. That covers what matters when a lab call ; misbehaves: failed authentication, no-matching-endpoint, playback failures. ; ; `notice` and `verbose` are both excluded because the "Remote UNIX ; connection" pairs the healthcheck generates arrive on those channels, and ; they swamped everything else (the Loki stream measured 100% healthcheck ; noise before this). The healthcheck itself is also reduced to one CLI call ; on a 60s interval in docker-compose — the two changes work together. ; ; To trace a call's dialplan execution, raise verbosity at runtime rather than ; leaving it on: ; asterisk -rx "core set verbose 3" console => warning,error