Why some function are class-less?
Jesse Phillips via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 17 10:02:02 PST 2016
On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote:
> Ok, but when the logger class may be more helpful that function
> usage?
You'd use the logger class when you need to make customizations
or have multiple logging schemes.
I'd expect Vibe.d allows you to override the global logging
object. You could then inherit from the Logger class, customize
the behavior and assign it to the global logger which is used by
all the libraries which just call the log() function.
More information about the Digitalmars-d-learn
mailing list