Skip to content

flexible logging framework supporting various "adaptors"

License

Notifications You must be signed in to change notification settings

core-haxe/logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logging

flexible logging framework supporting various "adaptors" (used throughout core haxe libraries)

basic usage

LogManager.instance.addAdaptor(new ConsoleLogAdaptor({
    levels: [LogLevel.Info, LogLevel.Error], // will show all logs by default
    formatter: new MySuperFormatter(), // defaults "DefaultFormatter"
    packages: ["foo.bar"] // will show all packages by default
}));

(note that each log adaptor can have its own settings)

var log = new Logger(SomeClass);
log.info("some string", someObject);
log.error("some string", someObject);
log.warn("some string", someObject);
log.debug("some string", someObject);
log.data("some string", someObject);

About

flexible logging framework supporting various "adaptors"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages