aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/buffered_logger.rb
Commit message (Collapse)AuthorAgeFilesLines
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-7/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Squash memory leak when calling flush with an empty bufferFrederick Cheung2008-12-101-1/+4
| | | | | | [#1552 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge with docrailsPratik Naik2008-12-071-0/+2
|
* Ensure old buffers get properly cleared to avoid leaking memoryDuff OMelia2008-09-181-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Maintain a seperate buffer for each threadJoshua Peek2008-08-181-7/+12
|
* Remove incomplete non-blocking logger functionalityMichael Koziarski2008-07-291-13/+1
|
* Guard the logger's internal buffer to prevent major breakage on genuinely ↵Michael Koziarski2008-07-291-6/+14
| | | | threaded environments
* Fixed that BufferedLogger should create its own directory if one doesnt ↵David Heinemeier Hansson2008-03-131-0/+1
| | | | | | already exist (closes #11285) [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use non-blocking writing if available. Closes #10794 [lifofifo]Michael Koziarski2008-01-131-3/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: join the buffer array explicitly rather than relying on ↵Jeremy Kemper2007-12-191-1/+1
| | | | | | to_s to flatten it git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use __FILE__ and __LINE__ for BufferedLogger severity methodsJeremy Kemper2007-10-131-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct BufferedLogger#level? checks. Closes #9806.Jeremy Kemper2007-10-071-1/+1
| | | | 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-11/+10
| | | | | | as a failsafe against memory-gobbling. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Explicitly convert the buffer array to a string before writing to head off ↵Jeremy Kemper2007-10-031-1/+1
| | | | | | compatibility issues with outputs that don't fully quack like an IO. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#auto_flushing = N flushes the log every N messages. Buffers ↵Jeremy Kemper2007-10-031-7/+29
| | | | | | 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-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cleanup comment. References #9702, closes #9703.Jeremy Kemper2007-09-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#add doesn't modify the message argument. Closes #9702.Jeremy Kemper2007-09-271-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add BufferedLogger#add #9667 [tomafro]David Heinemeier Hansson2007-09-251-6/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveSupport::BufferedLogger as a duck-typing alternative (albeit ↵David Heinemeier Hansson2007-09-251-0/+79
with no formatter) to the Ruby Logger, which provides a very nice speed bump (inspired by Ezra's buffered logger) [DHH] Changed the default logger from Ruby's own Logger with the clean_logger extensions to ActiveSupport::BufferedLogger for performance reasons [DHH]. (You can change it back with config.logger = Logger.new(/path/to/log, level).) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de