-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I want to change the logging level of an application (ruby).
require 'logger'
config = { :level => 'Logger::WARN' }
log = Logger.new STDOUT
log.level = Kernel.const_get config[:level]
Well, the irb wasn't happy with that and threw "NameError: wrong constant name Logger::WARN" in my face…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Hey All,
I'm trying to get a TDM400P card with FXO module to connect to our PSTN line. The card is correctly detected by Linux:
[trixbox1.localdomain asterisk]# lspci
00:09.0 Communication controller:
Tiger Jet Network Inc. Tiger3XX
Modem/ISDN interface
I've run setup-pstn which…
>>> More
-
as seen on Exceptional Code
- Search for 'Exceptional Code'
.NET 4.5 caller info attributes may be one of those features that do not get much airtime, but nonetheless are a great addition to the framework.
These attributes will allow you to programmatically access information about the caller of a given method, more specifically, the code file full path, the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a simple logger that is implemented as a singleton. It works like i want when I compile and run it with g++ in linux but when I compile in Visual Studio 9.0 with vc++ I get the following errors. Is there a way to fix this? I don't mind changing the logger class around, but I would like to avoid…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
This question relates to the question found here:
Find the php script thats sending mails
Trying to do the exact same thing but can't get the log to output what I need. Not too experienced with serverfault and ideally I'd post my followup on the original question, or PM adam to see if he ever found…
>>> More