aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/buffered_logger.rb
Commit message (Collapse)AuthorAgeFilesLines
* deprecation warning when BufferedLogger is instantiatedYves Senn2012-12-251-1/+11
|
* ActiveSupport::BufferedLogger can be subclassedYves Senn2012-12-251-2/+6
|
* remove unused requiresSergey Nartimov2012-01-181-3/+0
|
* * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the loggerAaron Patterson2011-12-191-118/+3
| | | | from Ruby stdlib.
* missing require in buffered loggerlest2011-12-131-0/+1
|
* Try to keep people from calling the deprecated flush method.Aaron Patterson2011-12-101-0/+5
|
* * ActiveSupport::BufferedLogger#silence is deprecated. If you want to squelchAaron Patterson2011-12-091-79/+33
| | | | | | | | | | | | | | | | | | | | | | | 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 threading issues with BufferedLogger.Brian Durand2011-10-211-8/+36
|
* Prefer each instead of for on activesupportGuillermo Iguaran2011-05-241-1/+1
|
* corrected a minor ruby19 variable name reuse warningJosh Kalderimis2011-05-211-3/+3
|
* set log encoding to BINARY, but still use text mode to output portable newlinesXavier Noria2011-05-181-6/+9
|
* make sure log file is written in binary mode. fixes #497Aaron Patterson2011-05-101-0/+2
|
* simplifying buffered logger for easier and slightly more performant codes. ↵Aaron Patterson2011-04-261-9/+4
| | | | pumpkin
* Add missing require 'thread' to BufferedLogger.José Valim2011-03-111-0/+1
|
* fix mixed encoding logs can't be logged.Kouhei Sutou2010-07-191-1/+5
| | | | | | | [#4807 state:committed] Signed-off-by: Kouhei Sutou <kou@cozmixng.org> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove the random line at the beginning of every new log fileTim Carey-Smith2009-10-291-1/+0
|
* Merge docrailsPratik Naik2009-07-251-0/+4
|
* Merge branch 'master' into cherryJeremy Kemper2009-04-201-8/+8
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activesupport/CHANGELOG activesupport/lib/active_support/core_ext/class/delegating_attributes.rb activesupport/lib/active_support/core_ext/hash/conversions.rb activesupport/lib/active_support/core_ext/module/attribute_accessors.rb activesupport/lib/active_support/core_ext/string/multibyte.rb activesupport/lib/active_support/core_ext/time/calculations.rb activesupport/lib/active_support/deprecation.rb
| * Annotated metaprogramming code across ActiveSupportMichael S. Klishin2008-12-281-8/+8
| |
* | Explict class attribute accessor dependencyJeremy Kemper2009-03-281-0/+2
| |
* | 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