Ticket #197 (accepted enhancement)

Opened 10 years ago

Last modified 10 years ago

libReporter should use ReporterCmdLine as (implicit) default

Reported by: emmenlau Owned by: emmenlau
Priority: minor Milestone: XuvTools-1.8.1-final
Component: libReporter Version: 1.8.0-beta3
Keywords: reporter, libreporter Cc: developers@…

Description

Since Reporter is a static singleton object, its methods can be invoked anytime in a program flow. However, before Reporter::Register() is called, no actual reporting is done (since no actual Reporter is registered).

This can be a drawback if Reporter is called from a library or similar, outside of the view of a programmer. A good (sane) default would be to construct a ReporterCmdLine? as a default, and destroy it once the first "real" Reporter::Register() is called.

Change History

Changed 10 years ago by emmenlau

  • status changed from new to accepted
  • component changed from xuvtools to libReporter
Note: See TracTickets for help on using tickets.