1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

26 commits

Author SHA1 Message Date
Daniel Schierbeck
5f07048dfd Extract a base class from ActiveSupport::LogSubscriber
Adds a ActiveSupport::Subscriber base class that LogSubscriber inherits
from. By inheriting from Subscriber, other kinds of subscribers can take
advantage of the event attachment system.
2013-04-16 14:39:22 +02:00
Vipul A M
2282964de7 Fix some railties test warnings 2013-04-03 23:25:46 +05:30
Aaron Patterson
8ae9b4623e adding missing requires 2013-01-09 15:34:58 -08:00
Francesco Rodriguez
d71d5ba71f update AS docs [ci skip] 2012-09-17 00:22:18 -05:00
Aaron Patterson
26a4e5e60e logger is a singleton, just flush the singleton 2012-06-20 14:21:23 -07:00
Aaron Patterson
b9f9951d5f use thread local queues.
Log listener is a singleton shared across threads, so make sure the
event queues are local to each thread.
2012-06-20 13:22:11 -07:00
タコ焼き仮面
84403ae065 Correct the AP test。 2012-06-19 20:44:45 -07:00
Aaron Patterson
a6fd462a80 make logger a singleton on the class 2012-06-19 14:41:31 -07:00
Aaron Patterson
c6af7646ad listeners are per thread, so remove nested hash 2012-06-19 14:41:31 -07:00
タコ焼き仮面
c6d86a5db4 make events not use date and time to determine parent_of. fixes #5932 2012-06-18 16:34:23 -07:00
Dylan Smith
c9891608aa Avoid unnecessary catching of Exception instead of StandardError. 2012-06-17 03:50:14 -04:00
Akira Matsuda
099639670a Symbol responds_to :upcase & :downcase in Ruby >= 1.9 2012-06-06 19:33:38 +09:00
Akira Matsuda
edee2c7b3b stop to_sing method names
Module#methods are Symbols in Ruby >= 1.9
2012-06-06 19:33:38 +09:00
Carlos Antonio da Silva
c045eebd5d Remove deprecation from AS::Deprecation behavior, some minor cleanups
* Refactor log subscriber, use select! to avoid a new object
* Remove deprecation messages related to AS::Deprecation behavior
  This was added about 2 years ago for Rails 3:
  d4c7d3fd94
* Remove some not used requires
* Refactor delegate to avoid string conversions and if statements inside each block
2012-03-16 09:01:48 -03:00
Aaron Patterson
f02cec3c49 defined the actual logger signature 2012-01-20 13:36:18 -08:00
Aaron Patterson
04241f38f6 added the backtrace so errors can be found 2012-01-20 11:57:07 -08:00
Matt Jankowski
3cfbf544ea grammar changes to log subscriber docs 2011-06-22 09:27:22 -04:00
Aaron Patterson
e28f9ad9df simplifying buffered logger for easier and slightly more performant codes. pumpkin 2011-04-26 10:41:59 -07:00
suchasurge
b99fb66fb7 more style changes 2011-03-06 10:44:52 +01:00
Santiago Pastorino
f939fb5e31 Makes use of class << self instead of def self. 2010-08-15 08:41:39 -03:00
Josep M. Bach
9f9a02af86 Whitespace and example identation 2010-08-15 02:22:38 +02:00
Santiago Pastorino
b451de0d6d Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
Neeraj Singh
46c7a991a2 fixing typo 2010-07-23 16:14:16 -04:00
Aaron Patterson
ad8f4dfc50 avoid proc activation every time a log message is made 2010-07-18 17:37:39 -07:00
rohit
cae33c4158 Remove previously defined class method logger to supress warnings in Active Support test suites. [#4618 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 00:27:31 +02:00
José Valim
6788db824a Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] 2010-06-24 13:23:43 +02:00
Renamed from railties/lib/rails/log_subscriber.rb (Browse further)