History log of /openbmc/phosphor-logging/docs/structured-logging.md (Results 1 – 9 of 9)
Revision Date Author Comments
# 110287ba 02-Dec-2024 Shawn McCarney <shawnmm@us.ibm.com>

lg2: Add path to list of supported types in docs

Update the documentation on the lg2 API to include std::filesystem::path
in the list of supported types.

Also updated a README.md that was failing C

lg2: Add path to list of supported types in docs

Update the documentation on the lg2 API to include std::filesystem::path
in the list of supported types.

Also updated a README.md that was failing CI due to a line that was too
long for the formatting checks.

Change-Id: I61a3694d6ad994155829d433a62b2f4a05980e3d
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>

show more ...


# d069f0da 26-Feb-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: update structured-logging with latest conversions

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I299eb37a617f8ba9cbeb94b63f817338a7e9a921


# 140d496e 17-Apr-2023 Jagpal Singh Gill <paligill@gmail.com>

Address markdownlint warnings

Addressed markdownlint warnings reported by
"../openbmc-build-scripts/scripts/format-code.sh --enable markdownlint"

Tested: Verified and fixed warnings using
"../openb

Address markdownlint warnings

Addressed markdownlint warnings reported by
"../openbmc-build-scripts/scripts/format-code.sh --enable markdownlint"

Tested: Verified and fixed warnings using
"../openbmc-build-scripts/scripts/format-code.sh --enable markdownlint"

Change-Id: I6f8fe65373c748b907b9ca55c527800583983538
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>

show more ...


# 26919f07 08-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

prettier: re-format

Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.

prettier: re-format

Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.

Change-Id: I6e8d56540a30898369d7f232d900fd74de2e7bd1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# ea06f8ec 25-Mar-2022 Zane Shelley <zshelle@us.ibm.com>

Enable lg2 log output to stderr in OpenBMC CI test

Similar to printing logs to stderr in a TTY, output to stderr can be
enabled during OpenBMC CI test by setting the `LG2_FORCE_STDERR`
environment v

Enable lg2 log output to stderr in OpenBMC CI test

Similar to printing logs to stderr in a TTY, output to stderr can be
enabled during OpenBMC CI test by setting the `LG2_FORCE_STDERR`
environment variable to any value.

Using meson, this can be done with something like:

test('test_name', executable(...), env: ['LG2_FORCE_STDERR=yes'])

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I0323fbb75fe211148ec4dc7e263fe18aabb8ffc6

show more ...


# 5dffc2d9 14-Nov-2021 Patrick Williams <patrick@stwcx.xyz>

lg2: reduce stdout and allow customization

It was reported by users that the information logged to the TTY was too
much in many cases, which limited the usability of lg2. Allow users to
customize t

lg2: reduce stdout and allow customization

It was reported by users that the information logged to the TTY was too
much in many cases, which limited the usability of lg2. Allow users to
customize the output by setting the "LG2_FORMAT" environment variable
and limit the default output to just "<level> message".

Tested:

Added a simple log to the beginning of an existing daemon and tested
format strings:

```
$ ./health-monitor
<6> Here I am!
$ LG2_FORMAT="{%l} %m %% [%f:%L:%F]|%" ./health-monitor
{6} Here I am! % [int main():511:../healthMonitor.cpp]|%
```

Resolves openbmc/phosphor-logging#26.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie50c90f073539812c0693d05fc04ce7ad2b3fbcd

show more ...


# 6b1077f6 29-Jul-2021 Patrick Williams <patrick@stwcx.xyz>

lg2: support exception conversion

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4b3cb55c9d03ed04b1f072bf3f5ef98ccffb0eef


# e43ec443 27-Jul-2021 Patrick Williams <patrick@stwcx.xyz>

lg2: support sdbusplus enum conversion

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I78cb28697631499adf5be64f7157a894c8d887ee


# 87896d58 27-Jul-2021 Patrick Williams <patrick@stwcx.xyz>

lg2: introduce motivation and API

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I519756bbbf84ce024b1a117013868c3c11ebdecb