0

I am trying to print int8_t value with Poco::Logger in this way:

using myint8_t = signed char;
myint8_t var;
var = 10;
logger().information("%c", var);
logger().information("%d", var);
logger().information("%i", var);

But as output have error which tells me that argument does not match the format specifier:

2018-10-02 00:12:40.627 [Information] [ERRFMT]
2018-10-02 00:12:40.627 [Information] [ERRFMT]
2018-10-02 00:12:40.627 [Information] [ERRFMT]

Where is my mistake and how to print signed char value with Poco::Logger? Thanks.

definename
  • 193
  • 1
  • 12

0 Answers0