Photon-v2 icon indicating copy to clipboard operation
Photon-v2 copied to clipboard

Able to log once

Open TzuChieh opened this issue 3 years ago • 2 comments

TzuChieh avatar Nov 06 '22 11:11 TzuChieh

For example, we can have a single macro PH_LOG() and specify the log level directly in the second parameter. LogLevel should have several members such as NoteOnce, WarningOnce, ErrorOnce.

Might not need to specify the enum name LogLevel repetitively in the log macro, just specify the member name and the macro should take care of it (adding the enum name for you).

TzuChieh avatar Nov 06 '22 11:11 TzuChieh

  • [ ] Test it.

TzuChieh avatar Mar 14 '24 19:03 TzuChieh