Below is my current pattern layout set:
%d{%m/%d/%Y %H:%M:%S,%l} [%t] %-5p %c %x %m%n
So it outputs as below to the log file;
06/13/2017 10:57:44,632 [3684] INFO MyLogCategory File: myclass.cpp Line: 59 My Logged Message
I would like to add current Windows User name to the appender so as I will get following output.. but no luck so far. I don't wanna add Windows User name for every message instead log4cpp should fetch current username and attach with every message it logs (I don't know log4cpp has this support yet. I found a pattern key "H" or "h" but it isn't working and throwing unknown conversion specifier 'H'.
06/13/2017 10:57:44,632 [3684][**WINDOWS USER NAME**] INFO MyLogCategory File: myclass.cpp Line: 59 My Logged Message