Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #372 (closed wishlist: fixed)

Opened 1 year ago

Last modified 1 year ago

Default parameter Level.Fatal for Logger.isEnabled()

Reported by: xammy Assigned to: kris
Priority: trivial Milestone: 0.97 RC 1
Component: Tango Version: trunk
Keywords: logging levels isenabled Cc:

Description

As said in documentation, one can test if a Logger is enabled at all by calling

bool ret = myLogger.isEnabled(Logger.Level.Fatal);

This might happen more often than isEnabled() calls for other loglevels. With a default parameter set to Loggel.Level.Fatal, this could be done with

bool ret = myLogger.isEnabled;

Just a tiny idea :)

Change History

04/02/07 12:29:41 changed by kris

  • status changed from new to assigned.
  • milestone changed from WebSite RC1 to 0.97 RC 1.

that could be handy, xammy. Will run it by the others and see what the consensus is.

Thanks!

04/03/07 21:22:07 changed by kris

  • status changed from assigned to closed.
  • resolution set to fixed.