<div dir="ltr">Hi all,<div><br></div><div>Main discussion: <a href="https://lore.kernel.org/openbmc/CAHwn2XknKWyv6Bsq48tkvA52rHKZRFoEJgUuZUmMj6uZb584JQ@mail.gmail.com/">https://lore.kernel.org/openbmc/CAHwn2XknKWyv6Bsq48tkvA52rHKZRFoEJgUuZUmMj6uZb584JQ@mail.gmail.com/</a> (a bit outdated)</div><div><br></div><div>This will be a sub-thread about logging services that will be used to support Drive (and could support others).</div><div><br></div><div>For bmcweb, I am wondering if we can support custom logging services other than the static ones that we have in <a href="https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/log_services.hpp">https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/log_services.hpp</a>.</div><div><br></div><div>I am thinking about supporting custom log service at a device level that can be exported by different hardwares log entries that are more specific. Then at each device resource can link  the Status.Condition to the LogEntries.<br></div><div><br></div><div>Initial Idea,</div><div><br></div><div>For example, I want to have log entries for Drive devices. </div><div><br></div><div>ComputerSystemId could still be system or bmc and the Redfish endpoint will be something like.<br></div><div><br></div><div><div>```</div><div>/redfish/v1/Systems/system/LogServices/Drive0LogService/Entries<br></div><div>```</div></div><div><br></div><div>On the D-bus side, the service exporting the log can add <a href="https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Logging/Entry.interface.yaml">log entry</a> under.</div><div><br></div><div>We can have </div><div>```</div><div>/xyz/openbmc_project/logging/device/drive_0<br></div><div>|__/xyz/openbmc_project/logging/device/drive_0/entry/...</div><div>```</div><div><br></div><div>We can parse the `xyz.openbmc_project.ObjectMapper` at `/xyz/openbmc_project/logging/device` with depth of 1 to get all the new device log services and so on.</div><div><br></div><div>Please let me know if there are any questions about it. If no one is against it, I'll work on implementing it.</div><div><br></div><div>Best,</div><div><br></div><div>Willy Tu</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Best,</div><div><br></div><div>Willy Tu</div></div>