arsdever/qspdlog

Ability to set a style to the logger

arsdever opened this issue · 3 comments

The functionality will allow the user to assign a style to the logger, so the log messages from that particular logger will show up in a user-defined way. For example, with a red background and green foreground colors.

Check out the second table at Qt::ItemDataRole's documentation.

Should I implement Qt::FontRole and Qt::TextAlignmentRole in #40 aswell?

Should I implement Qt::FontRole and Qt::TextAlignmentRole in #40 aswell?

Probably, we should include Qt::FontRole as well, but maybe it can be implemented with a separate PR.

I'm thinking that we don't need to support Qt::TextAlignmentRole though. I don't see much use for it.

Seems everything is covered.