- 10 6月, 2016 1 次提交
-
-
由 Kevin McPhillips 提交于
-
- 12 2月, 2016 1 次提交
-
-
由 Piotr Jakubowski 提交于
Fix #23609 Commit 629efb60 introduced thread safety to logger silencing but it didn't take into account the fact that the logger can be extended with broadcasting to other logger. This commit introduces local_level to broadcasting Module which enables broadcasted loggers to be properly silenced.
-
- 06 1月, 2016 1 次提交
-
-
由 schneems 提交于
When `rails console` or `rails server` are used along with a logger set to output to `STDOUT` then the contents will show up twice. This happens because the logger is extended with `ActiveSupportLogger.broadcast` with a destination of STDOUT even if it is already outputting to `STDOUT`. Previously PR #22592 attempted to fix this issue, but it ended up causing NoMethodErrors. A better approach than relying on adding a method and flow control is to inspect the log destination directly. For this `ActiveSupport::Logger.logger_outputs_to?` was introduced ```ruby logger = Logger.new(STDOUT) ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT) # => true ``` To accomplish this we must look inside of an instance variable of standard lib's Logger `@logdev`. There is a related Ruby proposal to expose this method in a standard way: https://bugs.ruby-lang.org/issues/11955
-
- 24 12月, 2015 1 次提交
-
-
由 Carl P. Corliss 提交于
- uses instance defined level if no custom local log level defined - Keeps track of local log level per [ thread + object-instance ] - prevents memory leakage by removing local level hash key/value on #silence method exit - avoids the use of Thread local variables
-
- 22 12月, 2012 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 01 4月, 2012 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Arun Agrawal 提交于
-
- 06 1月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Karunakar (Ruby) 提交于
minor
-
- 25 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 20 12月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
from Ruby stdlib.
-
- 13 12月, 2011 1 次提交
-
-
由 lest 提交于
-
- 10 12月, 2011 2 次提交
-
-
由 José Valim 提交于
-
由 Aaron Patterson 提交于
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.
-
- 25 10月, 2011 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 22 10月, 2011 1 次提交
-
-
由 Brian Durand 提交于
-
- 11 5月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 23 2月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 20 7月, 2010 1 次提交
-
-
由 Kouhei Sutou 提交于
[#4807 state:committed] Signed-off-by: NKouhei Sutou <kou@cozmixng.org> Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 18 5月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
[#4635 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 16 5月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
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: NJosé Valim <jose.valim@gmail.com>
-
- 23 4月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 29 3月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 11 12月, 2008 1 次提交
-
-
由 Frederick Cheung 提交于
[#1552 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 30 8月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 19 8月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
-
- 31 3月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 13 3月, 2008 1 次提交
-
-
由 David Heinemeier Hansson 提交于
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
-
- 05 1月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 08 10月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 05 10月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
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
-
- 04 10月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
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
-
- 28 9月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 27 9月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 26 9月, 2007 1 次提交
-
-
由 David Heinemeier Hansson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-