README.md in rails_semantic_logger-1.1.0 vs README.md in rails_semantic_logger-1.2.0

- old
+ new

@@ -56,16 +56,17 @@ * Simple drop-in replacement for the Ruby, or the Rails loggers * Supports current common logging interface * No changes to existing to code to use new logger ( other than replacing the logger ) -Rails 2 & 3 Support +Rails 2, 3 & 4 Support * Just include the semantic_logger gem into Rails and it will immediately replace the existing loggers to improve performance and information in the log files * The Rails 3 Tagged logging feature is already available for Rails 2 by using Semantic Logger +* Rails 4 push_tags and pop_tags methods are supported Thread Aware * Includes the process and thread id information in every log entry * If running JRuby it will also include the name of the thread for every log entry @@ -421,16 +422,25 @@ config.after_initialize do # Re-use the existing MongoDB connection, or create a new one here db = Mongo::Connection.new['production_logging'] # Besides logging to the standard Rails logger, also log to MongoDB - config.semantic_logger.appenders << SemanticLogger::Appender::MongoDB.new( + config.semantic_logger.add_appender SemanticLogger::Appender::MongoDB.new( :db => db, + :collection_name => 'semantic_logger', :collection_size => 25.gigabytes ) end ``` + +If the Rails colorized logging is enabled, then the colorized formatter will be used +by default. To disable colorized logging in both Rails and SemanticLogger: + +```ruby +config.colorize_logging = false +``` + ### Custom Appenders and Formatters To write your own appenders or formatting, see [SemanticLogger](http://github.com/ClarityServices/semantic_logger) ### Log Rotation @@ -439,10 +449,10 @@ to be rotated, use a copy-truncate operation rather than deleting the file. ### Dependencies - Ruby MRI 1.8.7, 1.9.3 (or above) Or, JRuby 1.6.3 (or above) -- Rails 2 or above +- Rails 2, 3, 4 or above Meta ---- * Code: `git clone git://github.com/ClarityServices/rails_semantic_logger.git`