similar to: Log4r SyslogOutputter example

Displaying 20 results from an estimated 100000 matches similar to: "Log4r SyslogOutputter example"

2006 Apr 11
2
using log4r and rails
hey everyone. i know somebody else had started a thread on this subject, but since no one seems to be answering that thread i thought i would start one of my one. i''m doing a project for a client and we need some seriously verbose logging. it looks like log4r can do what i need, but i can''t for the life of me figure out how to plug it into rails. everywhere talks about how
2006 May 21
0
Re: log4r and rails
The first question I would ask (partially out of curiosity) is what log4r specific feature are you trying to use? While there are some neat log4r features, the built in logger provides (from my perspective) a good logging framework already probably addresses most logging needs. http://wiki.rubyonrails.com/rails/pages/HowtoConfigureLogging That said, a basic setup to use log4r in rails follows a
2006 Jul 12
2
Initializing log4r once
I have a problem init''ing log4r. I have the following initialization code for log4r: Configurator[''logpath''] = ''./config'' # was ''./logs'' Configurator.load_xml_file(''config/log4r_config.xml'') I put it in appliction.rb, but then ofcourse at every request the logger system will be reinitialized. This causes the
2006 Apr 07
3
log4r and rails
Hey there folks. I would really like to use log4r as my default logger in Rails, but I''m having a hard time getting it to work. I''m not even sure I''m plugging it in in the right place. I''m using log4r 1.0.5 and rails 1.1.1. I would love it if someone could either point me to a good tutorial on how to use log4r with rails, or at least point me in the right
2009 Dec 24
1
problems unpacking log4r
I was just starting to use log4r and everything was going peachy until I tired to unpack it into my local vendor/gems. The next time I tried to load my rails environment, I got: config.gem: Unpacked gem log4r-1.1.2 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this and: no such file to load -- log4r So - I dutifully tried running rake
2006 Aug 12
0
log4r versus default rails logger??? recommendations???
Hi all, Just into rails at the moment. What do people recommend for logging. Use of the rails logger or log4r (http://log4r.sourceforge.net/)? What are most production rails sites using? Tks -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
0
Log4r database outputter
I recently had a look at Log4Net before we decided to go with Ruby On Rails. As part of evaluating Ruby and Rails, I had a look at Log4r as well. We want to use Log4r, and we would have a logger that output all levels to console and stdout, and everything above Warn to a database table. But the deployment of log4r doesn''t come with a database outputter. Is there any reason for this?
2008 Jun 30
0
log4r warning message...
I installed log4r as a gem on Max OS X Leopard. When I start the server locally, I have a warning that I''d like to get rid of. I think this is a side-effect of log4r? Other rails projects that I am working on, on the same machine that don''t generate this warning. this one is the only one using log4r. => Booting Mongrel (use ''script/server webrick'' to force
2010 Dec 23
0
logserver with log4r
Hey guys, I am trying to set up a logging server using log4r ! When I try to run the server I get the following error message "LogServer not supported. ROMP is required (RuntimeError)" I installed romp the way its mentioned in some blog with similar issue. Any ideas about it ? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Mar 18
0
implicit template naming for multipart/alternative emails
Hello, I''ve been using edge rails for a while now and used the recipe from the new recipes book on using implicit file names for multipart/alternative messages. This seems to have recently broke. I''ve named by templates according to the book and the docs... # for example, if the following templates existed: # * signup_notification.text.plain.rhtml # *
2006 May 18
1
mime yaml
First off, apologies if this is addressed.. I didn''t find anyone having the same problem (which usually means the problem is me!) I''m running the standard command to start a Rails server, with additional custom mime YAML: mongrel_rails start -m /etc/mongrel_mime.yml Content of the /etc/mongrel_mime.yml is only a single line: .xml: text/xml However, the custom mime
2007 Oct 29
0
ENC a simple example
So on the heels of the ENC discussion in another thread I figured I''d put up what I''m currently working on from an external nodes perspective as a simple example. Then let everyone tear into it... :) I have a very basic external_nodes script: --start-- #!/usr/bin/perl use strict; use warnings; use YAML qw( Dump LoadFile ); my $vardir = ''/etc/puppet''; my
2006 Mar 02
2
Use ActiveRecord outside of Rails to upload to database?
Sorry if this has been asked in the past, but the search function is still down... My scenario: For my research agency, I''m trying to download XML files from the National Weather Service (NWS) and import certain data into my SQL Server database. Normally, I would use .NET to do this, but I''m trying to find a Ruby solution. Question: Suppose I write a Ruby script to run
2006 Jan 29
6
Depot example problem on Slackware
Hello. I''m new to RoR. I run RoR on my Slackware. I follow the depot example and have a problem when run the script: root@localhost:~/work/depot# ruby script/generate scaffold Admin Product /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 5, col 2: ` socket:/var/run/mysql/mysql.sock'' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups, thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2009 Jul 15
0
[PATCH] Make Perl strings translatable
This patch makes Perl strings translatable. The Perl strings end up in the PO files as usual. It does not touch the embedded POD. Internationalizing the Perl strings was pleasantly simple. Just add: use Locale::TextDomain 'libguestfs'; at the top of any *.pl or *.pm file. Then for each string in the file that you want to be translatable you place TWO underscores before it: -
2011 Dec 06
1
module can't find other modules
I have these three modules with the following structure: |-- modules | |-- create_resources | | |-- LICENSE | | |-- Modulefile | | |-- README | | |-- lib | | | `-- puppet | | | `-- parser | | | `-- functions | | | `-- create_resources.rb | | |-- spec | | | |-- spec.opts | | | |-- spec_helper.rb | | | `-- unit
2007 Jul 19
2
yaml representation of manifests
I''m using the external_nodes functionality to read in a flat file of a node''s configuration. Currently said file is a straight yaml file (just to keep things simple). The place I''m currently stuck is in doing some more advance node configurations and placing that data in the yaml file. For example: node ''foo'' { $var1 =
2006 Sep 29
2
multiyield
I lied, I don''t actually need different responses each time I call the method. So the last email of mine is probably worthless. Instead, I need yield to yield 3 values when I call it once: (behavior that mimics Find.find) def test_generate(documentation = ''/test_documentation/'', destination = ''/destination/'')
2016 Jul 15
2
Porting Automation
I'm just trying to get an overview of a greater picture, I'm currently not working on any compiler porting or CPU development, but could someone please tell, if there exists in LLVM or some other compiler a feature, where different CPU-vendors offer some standardized XML/JSON/YAML file that describes the CPU's parameters, registers, commands in some formal manner and compilers that