aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/tagged_logging.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use join without default separatorPiotr Niełacny2012-07-201-2/+2
| | | | Use lstrip method
* Revert "Merge pull request #7084 from LTe/logger_default_separator"Aaron Patterson2012-07-181-1/+1
| | | | | This reverts commit c08f30ff5fcda7e07cd9275a073acb2091e4b3f7, reversing changes made to e243a8a32eb4c8777f07ca4b974bd7e38d9477d3.
* Don't use default separatorPiotr Niełacny2012-07-181-1/+1
| | | | When the default separator is set logger will create incorrect output
* removing unnecessary 'examples' noise from activesupportFrancesco Rodriguez2012-05-131-1/+1
|
* Provide access to logger instance within TaggedLogging blocksFND2012-03-191-1/+1
| | | | | | | | | | this improves encapsulation, simplifying occurrences like the following: Rails.logger.tagged("DEBUG") { Rails.logger.debug(msg) } ... by removing the need to rely on (i.e. repeat) outer variables: Rails.logger.tagged("DEBUG") { |logger| logger.debug(msg) }
* make the tagged formatter extend the existing formatterAaron Patterson2012-03-121-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-211-5/+5
|\
| * Why do we even need a constant here? A variable is fine.Semyon Perepelitsa2012-01-211-4/+4
| |
| * TaggedLogging wraps an object, not a class.Semyon Perepelitsa2012-01-211-1/+1
| |
| * Do not use the same Logger constant for class (from stdlib) and for instance ↵Semyon Perepelitsa2012-01-211-4/+4
| | | | | | | | (from the example)
* | move tagged logging to a module, stop proxying every method callAaron Patterson2012-01-191-36/+32
|/
* simplify some TaggedLogging methodsSergey Nartimov2012-01-181-2/+2
|
* use thread variable in TaggedLoggingSergey Nartimov2012-01-171-3/+2
| | | | previous solution can cause race conditions under GIL-free ruby implementations
* Remove Array.wrap calls in ActiveSupportRafael Mendonça França2012-01-061-1/+1
|
* A few doc changesVijay Dev2011-12-241-3/+3
|
* Fix AS test suite.José Valim2011-12-101-0/+1
|
* * ActiveSupport::BufferedLogger#silence is deprecated. If you want to squelchAaron Patterson2011-12-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | logs for a certain block, change the log level for that block. * ActiveSupport::BufferedLogger#open_log is deprecated. This method should not have been public in the first place. * ActiveSupport::BufferedLogger's behavior of automatically creating the directory for your log file is deprecated. Please make sure to create the directory for your log file before instantiating. * ActiveSupport::BufferedLogger#auto_flushing is deprecated. Either set the sync level on the underlying file handle like this: f = File.open('foo.log', 'w') f.sync = true ActiveSupport::BufferedLogger.new f Or tune your filesystem. The FS cache is now what controls flushing. * ActiveSupport::BufferedLogger#flush is deprecated. Set sync on your filehandle, or tune your filesystem.
* Fix typo in AS::TaggedLoggingClaudio Poli2011-11-291-1/+1
|
* Checking blank if tag might coming nil or blankArun Agrawal2011-10-211-1/+2
| | | In log it should not show the empty array.
* Ensure TaggegLogging is thread safe.José Valim2011-10-191-13/+22
|
* Programatically define the log level methods and use the Logger constants ↵David Heinemeier Hansson2011-10-191-23/+8
| | | | instead (SyslogLogger didnt define them as I expected)
* Added X-Request-Id tracking and TaggedLogging to easily log that and other ↵David Heinemeier Hansson2011-10-191-0/+68
production concerns