Project

General

Profile

Actions

Feature #3668

closed

Logging facility: sink auto_flush

Added by Junxiao Shi over 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h
Tags:

Description

Allow enabling/disabling auto_flush on Boost.Log sink backend for performance vs reliability tradeoff.


Related issues 1 (0 open1 closed)

Blocked by ndn-cxx - Feature #3562: Logging facilityClosedJunxiao Shi

Actions
Actions #1

Updated by Junxiao Shi over 7 years ago

Actions #2

Updated by Davide Pesavento almost 6 years ago

Would a simple static void Logging::setAutoFlush(bool) function be enough to implement this feature?

Actions #3

Updated by Davide Pesavento almost 4 years ago

  • Tags set to logging
Actions #4

Updated by Alex Afanasyev almost 4 years ago

  • Assignee set to Alex Afanasyev

I don't really know why this would be ever needed, but I can quickly implement such customization using NDN_LOG_NOFLUSH environment variable. If defined to any value, auto-flush will be turned off.

Actions #5

Updated by Alex Afanasyev almost 4 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 100
Actions #6

Updated by Davide Pesavento almost 4 years ago

  • Status changed from Code review to Closed
  • Target version set to 0.8.0
Actions

Also available in: Atom PDF