开发者

Log4Perl bundling logging from several programs into one log

开发者 https://www.devze.com 2023-01-05 14:26 出处:网络
Is there any Logger on CPAN which allows me to bundle logs from several programs into one file with synchronising parallel logging when two programs run the same time and call log4Perl in parallel.

Is there any Logger on CPAN which allows me to bundle logs from several programs into one file with synchronising parallel logging when two programs run the same time and call log4Perl in parallel.

Background is that I use a custom appender which writes Emails and I would like to bundle all emails in a single file as a backup in case the开发者_JS百科 mail server has problems.


You can do that in two main ways:

  • with Log::Log4perl::Appender::File (and its descendants) with the 'syswrite' option, which guarantees atomic writes, and
  • with Log::Log4perl::Appender::Synchronized.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号