Displaying 12 results from an estimated 12 matches similar to: "Logging - using a different log for one method"
2004 Dec 03
2
setGeneric(rm)
Hi,
We are developing a package using S4 classes. The S4 classes
are wrappers to C++ classes. So S4 classes contain an integer
that is the memory address of one C++ object. If an user
calls the rm() function, the C++ object must be deleted. But our generic
rm() function apparently doesn't work. Here is the code:
# The class
setClass("component",
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all,
I am in the process of adding Migration support to the Ingres
ActiveRecord adapter and have run in to a problem. During the call to
create_table the Ingres adapter some how causes ruby to blow the stack
and coredump/segv. I have tracked down the problem down to
"add_column_options!" in
"lib/active_record/connection_adapters/abstract/schema_statements.rb".
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all,
I am in the process of adding Migration support to the Ingres
ActiveRecord adapter and have run in to a problem. During the call to
create_table the Ingres adapter some how causes ruby to blow the stack
and coredump/segv. I have tracked down the problem down to
"add_column_options!" in
"lib/active_record/connection_adapters/abstract/schema_statements.rb".
2008 Nov 22
3
rawk no longer works on Rails 2.2.2
I just wanted to let you know that the hack to make rawk work on Rails
2.2.2 by grouping action calls no longer works.
This is the hack, I have put the TODO where the line crashes Rails:
--
module ActiveSupport
class BufferedLogger
def add(severity, message = nil, progname = nil, &block)
return if @level > severity
message = (message || (block && block.call) ||
2004 May 09
2
Sip to PSTN Gateway Configs
Hi,
I'm trying to put together a simple gateway
configuration involving Asterisk. I have a machine
with 2 Digium X100P FXO cards installed and the
Asterisk Software, and I have 2 Sip Phones defined.
What I want to achieve is, any call arriving at FXO 1
is forwarded to Sip phone 1 only, and any call
received on FXO 2 is transferred to Sip Phone 2,
conversely any call originating from Sip
2011 Mar 21
2
cant use Samba window sprinter drivers on Windows XP32
hi everybody,
after some trouble i an know able to upload and set printerdrivers via
cupsaddsmb and windows apw.
but there are two errors.
- i cant use the driver on a windows xp 32, if does not get installed as
root previously.
- i have a Oki Execution series 7411 and used the PS Driver.
when printing to that printer i get in smb.log
Unable to print file to es7411 -
2008 Nov 17
0
custom format with BufferedLogger?
So Rails2 provides a new BufferedLogger class that is used for logging.
The old monkey-patched Logger class is deprecated.
It''s nice that the new BufferedLogger doesn''t do that weird monkey
patching thing, making it easier to sub-class for custom behavior and
set your sub-class as the logger, etc.
But oddly, BufferedLogger is not a sub-class of the Ruby logger. It''s
2010 Jan 18
5
Re: puts & logger ... flush immediately
Marnen Laibow-Koser wrote:
> Ralph Shnelvar wrote:
>> newbie here ...
>>
>> I am tracing logic putting puts and logger.info calls in my code.
>>
>> I _think_ Rails is buffering output so that I can''t see what happens
>> until I close out webrick.
>
> But you are probably wrong. If you watch the log scroll by, you will
> generally see
2012 Oct 25
0
[Rails 3.2.8] ActiveSupport::BufferedLogger extension, undefined_method
I tried to extend it , with this class , loaded at config time :
config.autoload_paths += Dir["#{config.root}/lib",
"#{config.root}/lib/**/", "#{config.root}/app/inputs"]
lib/extension.rb
class ActiveSupport::BufferedLogger
def detailed_error(e)
error(e.message)
e.backtrace.each{|line| error line }
end
end
but calling it in my controller
rescue
2010 Aug 09
0
Logging form delayed job class
I have asked this before without any luck, trying again.
this is what I have in my dj.rb initializer
Delayed::Worker.backend = :active_record
Delayed::Worker.logger = Rails.logger
#Delayed::Worker.logger = ActiveSupport::BufferedLogger.new("log/
##{Rails.env}_delayed_jobs.log", Rails.logger.level)
class Delayed::Job
def logger
Delayed::Worker.logger
end
end
if
2008 Feb 19
0
Rails logger change format
Hi guys,
After few investigations I still cannot change the format of logs from
rails 2.0.2 apps.
I tried with overwriting the format_message method from Logger class and
still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I
didn''t manage to change the format for this one.
What seems to be the easiest way to do that ?
Thanks in advance.
--
Posted via
2004 Aug 17
0
Microsoft updates
http://www.softgoeshome.com/
Microsoft Windows XP Professional - 50
Adobe Photoshop 7.0 - 60
Microsoft Office XP Professional - 100
Microsoft Windows 2000 Professional - 50
Adobe PageMaker 7.0 - 60
Adobe Illustrator 10 - 80
Corel Draw Graphics Suite 11 - 120
Norton Antivirus 2004 Professional - 15
Borland Delphi 7 Professional - 70
Adobe Acrobat 6.0 Professional - 100
Adobe Acrobat 6.0