spdlog icon indicating copy to clipboard operation
spdlog copied to clipboard

log4j, log4net format ?

Open ZedZipDev opened this issue 8 years ago • 4 comments

Is it possible to implement formatting like log4j, log4net?

ZedZipDev avatar Apr 04 '18 13:04 ZedZipDev

what do you mean?

gabime avatar Apr 04 '18 14:04 gabime

I mean for example: I have .NET app uses log4net and I use some third party utilities to view log files or logs sent to network. These utilities know the log4j/log4net format. And I have asked: is it possible to use a formatter (which?) which can create records in log4j/log4net format?

ZedZipDev avatar Apr 10 '18 07:04 ZedZipDev

Please refer to the docs about formatting. (set_pattern('..'))

gabime avatar Apr 10 '18 08:04 gabime

I create a custom sink to send the messages via UDP. I want to use the Log2Console tool for viewing the received UDP messages. The Log2Console viewer supports the log4J / log4net format. What is the proper format string for the method set_pattern?

RolandMuenker avatar Apr 18 '18 11:04 RolandMuenker