History log of /openbmc/phosphor-fan-presence/test/logger_test.cpp (Results 1 – 2 of 2)
Revision Date Author Comments
# c674510e 22-Oct-2020 Matt Spinler <spinler@us.ibm.com>

Save the Logger output as plain text, not JSON

This file is sent in when an event log is created to be used as FFDC.
The output is smaller and also slightly easier to read when it is in a
text file

Save the Logger output as plain text, not JSON

This file is sent in when an event log is created to be used as FFDC.
The output is smaller and also slightly easier to read when it is in a
text file of the form: <timestamp>: <messsage>.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I5e9953f150cc1478251f3e2131e8b3e548ed1274

show more ...


# 635de8c6 24-Sep-2020 Matt Spinler <spinler@us.ibm.com>

Create a class to store messages for event log

Create a Logger class that can store log messages along with their
timestamps. These messages will then be added to an event log when they
are created

Create a class to store messages for event log

Create a Logger class that can store log messages along with their
timestamps. These messages will then be added to an event log when they
are created for missing fans, for debug purposes. Each message is also
logged to the journal.

The maximum number of entries to keep around is specified in the
constructor, and when full the oldest message will be purged when new
ones are added. This number comes from a configuration option which
defaults to 50.

A standalone getLogger() API was also added to give the new object
singleton behavior, so the same object can be accessed from all classes
in an application.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I8d5ac137acb67bfe78609d02aaf59a01b03c5c8b

show more ...