Right now, in WAM, we have several development log implementations:
PmLog (disabled in AGL as we don't have pmlog library)
fprintf
cerr
The goals of this task are:
Adding a PMLOG macros fallback implementation that is not depending on libpmlog, but just dumps to stderr with the channels enabled in an environment variable.
If there was a defer status, that's the one I would set. On next upgrade to Chromium we should get Chromium LOG support for all the PmLog calls. At that point only updating WAM (the WAM component) logging will be needed
Walt Miner
September 2, 2020 at 3:35 PM
Can this issue be closed?
José Dapena Paz
November 16, 2018 at 3:06 PM
Ok, so it seems it is as simple as adding the level prefix to the line. It would be even trivial to add a fake implementation in case we don't want to add mandatory systemd headers dependency.
For simplicity, we can just forget about channels for now (not available in systemd logging either), and just add an stderr implementation using systemd macros.
P.S. not a magician... yet.
jose bollo
November 16, 2018 at 11:30 AM
you are a magician that can answer my comment before I wrote it. Bien hecho!
jose bollo
November 16, 2018 at 8:46 AM
(edited)
I point out below the specification of how to write daemon/programs compliant with systemd logging system.
Right now, in WAM, we have several development log implementations:
PmLog (disabled in AGL as we don't have pmlog library)
fprintf
cerr
The goals of this task are:
Adding a PMLOG macros fallback implementation that is not depending on libpmlog, but just dumps to stderr with the channels enabled in an environment variable.
Rename the PMLOG macros to LOG.