Sergey Nartimov
1e9e88fcd3
remove checks for encodings availability
2011-12-25 14:34:58 +03:00
Aaron Patterson
572c3d5178
* BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger
...
from Ruby stdlib.
2011-12-19 18:41:37 -08:00
lest
8a9cf790db
missing require in activesupport test
2011-12-13 10:33:58 +03:00
José Valim
cd7fbcbba8
Fix AS test suite.
2011-12-10 11:17:00 +01:00
Aaron Patterson
04ef93dae6
* ActiveSupport::BufferedLogger#silence is deprecated. If you want to squelch
...
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.
2011-12-09 16:05:57 -08:00
Arun Agrawal
b6fc41275c
Unused variable removed
2011-10-24 21:56:27 +05:30
Brian Durand
d565fda5f2
Fix threading issues with BufferedLogger.
2011-10-21 12:43:52 -05:00
Aaron Patterson
8f999a3f80
make sure log file is written in binary mode. fixes #497
2011-05-10 13:23:05 -07:00
José Valim
3265bbb659
Fix tests on 1.8.
2011-02-22 22:51:02 +01:00
Kouhei Sutou
a6e95ba554
fix mixed encoding logs can't be logged.
...
[#4807 state:committed]
Signed-off-by: Kouhei Sutou <kou@cozmixng.org>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-07-19 14:55:58 -07:00
Neeraj Singh
0dab076a08
Better error messages for some of ActiveSupport tests
...
[#4635 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-18 16:12:59 +02:00
Santiago Pastorino
fdfebb7782
Make use of assert_equal to test equallity between object assert expects and object and a message of error
...
[#4611 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 16:06:28 +02:00
Jeremy Kemper
f28bd9557c
Fix dependencies revealed by testing in isolation
2009-04-22 18:54:13 -07:00
Jeremy Kemper
7bcfff4457
Explicit test dependencies
2009-03-28 23:56:14 -07:00
Frederick Cheung
9f69ff12d4
Squash memory leak when calling flush with an empty buffer
...
[#1552 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-12-10 15:07:34 -08:00
Jeremy Kemper
5a6e20b607
Fix test to not assume which thread finishes first
2008-08-29 15:59:56 -07:00
Joshua Peek
96ab01e8f2
Maintain a seperate buffer for each thread
2008-08-18 23:36:13 -05:00
Jeremy Kemper
ade1e3defd
require fileutils
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 01:09:19 +00:00
David Heinemeier Hansson
13ab55f737
Fixed that BufferedLogger should create its own directory if one doesnt already exist ( closes #11285 ) [lotswholetime]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-13 01:54:34 +00:00
Jeremy Kemper
f6d8526659
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:31:04 +00:00
Jeremy Kemper
c90d31eb37
Correct BufferedLogger#level? checks. Closes #9806 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 18:54:36 +00:00
Jeremy Kemper
d0755b9814
Disabling auto_flushing still flushes when the buffer hits a maximum size, as a failsafe against memory-gobbling.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-04 19:52:10 +00:00
Jeremy Kemper
748e6873c2
BufferedLogger#auto_flushing = N flushes the log every N messages. Buffers with an array instead of string.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-03 23:43:12 +00:00
Jeremy Kemper
ccb87e2f69
BufferedLogger#add converts the message to a string. Closes #9724 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 14:09:35 +00:00
Jeremy Kemper
6f06ac6e1a
BufferedLogger#add doesn't modify the message argument. Closes #9702 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-27 04:50:58 +00:00
David Heinemeier Hansson
106b236824
Include the tests
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 16:48:50 +00:00