aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/tagged_logging_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #27792 from tjoyal/sandbox-tagged-loggingRafael Mendonça França2018-09-111-8/+21
|\ | | | | | | TaggedLogging to return a new logger instance
| * TaggedLogging to return a new logger instanceThierry Joyal2017-02-271-8/+21
| |
* | Merge pull request #28171 from sorra/fresh-thread-tagged-loggingRyuta Kamizono2018-02-031-1/+2
|\ \ | | | | | | Improve test for TaggedLogging "keeps each tag in their own thread"
| * | Improve test for TaggedLogging "keeps each tag in their own thread"Dongqing Hu2017-02-261-1/+2
| |/
* | Use respond_to test helpersDaniel Colson2018-01-251-1/+1
| |
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
| |
* | Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
| |
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* | Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|/
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-9/+9
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Tweaked wording used in some tests.Sebastian McKenzie2015-10-251-6/+6
|
* Fix TaggedLogging to allow loggers to be instantiated multiple times without ↵Alexander Staubo2013-01-241-0/+13
| | | | having to share the stack of tags. This is accomplished by using a unique key for the thread-local tag list. Fixes #9064.
* Allow wrapping a logger that hasn't set a formatter. Default to our ↵Jeremy Kemper2012-09-261-0/+8
| | | | SimpleFormatter. Otherwise we try extending nil with the tagging API.
* Add logger.push_tags and .pop_tags to complement logger.taggedJeremy Kemper2012-09-261-0/+17
|
* Revert "Use join without default separator"José Valim2012-08-231-0/+5
| | | | | | This reverts commit b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577 because it was removing the contents of the message when we did not have any tag. A test case is also committed.
* Revert "Merge pull request #7084 from LTe/logger_default_separator"Aaron Patterson2012-07-181-13/+2
| | | | | This reverts commit c08f30ff5fcda7e07cd9275a073acb2091e4b3f7, reversing changes made to e243a8a32eb4c8777f07ca4b974bd7e38d9477d3.
* Don't use default separatorPiotr Niełacny2012-07-181-2/+13
| | | | When the default separator is set logger will create incorrect output
* Provide access to logger instance within TaggedLogging blocksFND2012-03-191-1/+6
| | | | | | | | | | 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) }
* * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the loggerAaron Patterson2011-12-191-2/+2
| | | | from Ruby stdlib.
* Checking blank if tag might coming nil or blankArun Agrawal2011-10-211-0/+5
| | | In log it should not show the empty array.
* Ensure TaggegLogging is thread safe.José Valim2011-10-191-1/+29
|
* Added X-Request-Id tracking and TaggedLogging to easily log that and other ↵David Heinemeier Hansson2011-10-191-0/+34
production concerns