Support std::hex in custom operator<< I have written my own operator<< implementation in my Logger class: