aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/buffered_logger_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* buffered logger is initialized with the log level passed trough the initializerNiranjan Paranjape2012-06-091-0/+5
|
* missing require in activesupport testlest2011-12-131-0/+1
|
* Fix AS test suite.José Valim2011-12-101-0/+1
|
* * ActiveSupport::BufferedLogger#silence is deprecated. If you want to squelchAaron Patterson2011-12-091-127/+12
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Unused variable removedArun Agrawal2011-10-241-1/+1
|
* Fix threading issues with BufferedLogger.Brian Durand2011-10-211-0/+53
|
* make sure log file is written in binary mode. fixes #497Aaron Patterson2011-05-101-0/+39
|
* Fix tests on 1.8.José Valim2011-02-221-3/+1
|
* fix mixed encoding logs can't be logged.Kouhei Sutou2010-07-191-0/+15
| | | | | | | [#4807 state:committed] Signed-off-by: Kouhei Sutou <kou@cozmixng.org> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Better error messages for some of ActiveSupport testsNeeraj Singh2010-05-181-6/+6
| | | | | | [#4635 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make use of assert_equal to test equallity between object assert expects and ↵Santiago Pastorino2010-05-161-2/+2
| | | | | | | | object and a message of error [#4611 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-221-6/+8
|
* Explicit test dependenciesJeremy Kemper2009-03-281-0/+1
|
* Squash memory leak when calling flush with an empty bufferFrederick Cheung2008-12-101-0/+6
| | | | | | [#1552 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix test to not assume which thread finishes firstJeremy Kemper2008-08-291-1/+2
|
* Maintain a seperate buffer for each threadJoshua Peek2008-08-181-4/+25
|
* require fileutilsJeremy Kemper2008-03-311-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that BufferedLogger should create its own directory if one doesnt ↵David Heinemeier Hansson2008-03-131-0/+10
| | | | | | already exist (closes #11285) [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct BufferedLogger#level? checks. Closes #9806.Jeremy Kemper2007-10-071-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disabling auto_flushing still flushes when the buffer hits a maximum size, ↵Jeremy Kemper2007-10-041-0/+13
| | | | | | as a failsafe against memory-gobbling. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#auto_flushing = N flushes the log every N messages. Buffers ↵Jeremy Kemper2007-10-031-7/+34
| | | | | | with an array instead of string. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#add converts the message to a string. Closes #9724.Jeremy Kemper2007-09-281-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#add doesn't modify the message argument. Closes #9702.Jeremy Kemper2007-09-271-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include the testsDavid Heinemeier Hansson2007-09-251-0/+41
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de