README.rdoc in loggability-0.13.0 vs README.rdoc in loggability-0.14.0
- old
+ new
@@ -196,11 +196,22 @@
# Or chain them together:
Loggability.with_level( :debug ).outputting_to( $stderr ).formatted_with( :color ) do
Client.connect!
end
+You can also make the override only apply to the loggers for a subset of log hosts:
+ # Log only fatal errors on the loggers for the specified two classes
+ Loggability.with_level( :fatal ).for_loggers( ACME::Model, ACME::Adapter ) do
+ ACME.start_up
+ end
+
+ # Debug a particular class:
+ Loggability.with_level( :debug ).for_logger( ACME::Server ) do
+ ACME.start_up
+ end
+
=== Configurability
Loggability has support for the Configurability[https://rubygems.org/gems/configurability]
library, which does the same thing for configuration that Loggability does for
logging.
@@ -310,10 +321,10 @@
and generate the API documentation.
== License
-Copyright (c) 2012-2016, Michael Granger
+Copyright (c) 2012-2017, Michael Granger
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: