hey all
I'm using log4net for logging and my conversion pattern includes threadId in my output, but its only highest 2 digits and i am asked to convert it to hexadecimal but so far i found code C# to convert decimal numbers to hex but how can i convert my threadID to hex and make it appear in hex format. I'm very new to this not even sure where to look, anybody help please?
here is the code in the xml file
<conversionPattern value="%date [%thread] %method %-5level %logger – %message%newline"/>
and [%thread] gives me a number like 10 or 7 or 8, but i need it to be hex format maybe like 0x887df9 so what should i do???