Displaying 20 results from an estimated 11000 matches similar to: "Log rotation"
2006 Oct 01
7
Log rotation
Hi mongrel-herders,
I''m just wondering what fellow railsers use to rotate their logs in an
orderly fashion? I''d like to do something lightweight, i.e. (1) rename the
logfile (2, optional) create a new empty logfile and (3) send a signal to
each mongrel in the cluster and have them understand it''s time to reopen
their log file handles. This is what I do with apache and
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 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?
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 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
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
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
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller:
class FredController < ApplicationController
def hello
render :text => ''Hello, world!''
end
end
and I create a simple functional test within the engine:
class FredControllerTest < Test::Unit::TestCase
...
def test_hello
get :hello
assert_response :success
end
2006 Jan 31
4
Rails bug? Conditions on associations ignored by eager loading
I''m looking for someone to confirm the following as a bug in Rails
1.0 before I post it to Trac.
If I use eager loading on an association that has conditions defined,
the conditions are ignored.
The following example illustrates the problem. I have two tables:
create_table "blogs", :force => true do |t|
t.column "name", :string
end
create_table
2012 Jan 16
0
Rails3 logging issue in development.log
I have a rails3 app, i need to log all into development.log, But when i
check after the execution, the development.log is empty...How to rectify
this problem...
*development.rb*
*
*
ApiMofobi::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# In the development environment your application''s code is reloaded on
#
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/.
2017 Dec 01
0
Log rotation issue
Hi,
Continuing on the same subject, the VARIABLE SUBSTITUTIONS are not
working. for example, I want to have the date & time attached to the
samba log file. Hence I modified the smb.conf
log file = /var/log/samba/samba.%T.log
The file with name "samba.%T.log" gets created in /var/log/samba folder
and %T will not get substituted with current date & time.
I request for your
2017 Dec 03
0
Log rotation issue
Hello Andrew,
I am now experimenting with my test setup on the log rotation part.
While testing different scripts, I observed a very peculiar behavior
with log writing process.
If the log file name has a variable to be substituted, say %T, it
continues to write into it without creating .old file. If it is a simple
name like samba.log or dc1.current.log etc., after about 10 MB, the log
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
2017 Nov 30
4
Log rotation issue
Hi,
We recently migrated the samba-ad-dc from 4.6.5 to 4.7.1. Over a period
of last 15 days or so we have been observing that although the samba log
rotates, upon rotation, samba will start writing the logs to both the
main log file and the <main log>.old file simultaneously. While, the
main log file rotates properly, instead of deleting old file and create
a new one on rotation, samba
2011 Jun 28
2
A masked function is a masked function by any other name
Dear all,
It looks like I do not grasp the concept of masked functions enough as
to solve this trivial problem.
The code that replicates the problem (a source code tree that realizes
a R package actually) is under github so one can call it clone it
easily from the command line (though more experienced users will spot
the problem by browsing through the package code):
git clone http://jcborras at
2004 Mar 11
0
Re: make.search.html() without write permission in R.home() (PR#6664)
I did that. In fact the default uses .libPaths()[1], which I have set to
"P:/stat/yandell/public/statgen/R"
The package installs fine. However, the HTML search is not done properly.
Again, the break occurred after installation of the package, when
make.search.html() was invoked.
Brian
On Thu, 11 Mar 2004, Douglas Bates wrote:
> Brian Yandell <byandell@wisc.edu> writes:
>
2004 Mar 11
0
Re: make.search.html() without write permission in R.hom e( ) (PR#6664)
So this is on Windows, then? This is documented somewhere (don't remember):
If the package is not located under $R_HOME/library, then the html help will
not be able to find it. Don't think there's a known work-around.
Cheers,
Andy
> From: byandell@wisc.edu
>
> I did that. In fact the default uses .libPaths()[1], which I
> have set to
>
2007 Feb 22
0
Log rotation
What are people doing about rotating backgroundrb.log and
backgroundrb_server.log? It looks like the Logger creation is
hardcoded in worker.rb and backgroundrb_server.rb, so there''s no
opportunity to pass my own rotation arguments to Logger.new.
Best Regards,
Danny
2006 Feb 14
7
9cays - A Rails app for Group Email
Even though it''s a little OT, I thought I''d announce the free public
beta of a new Rails app that I''ve been working on for a while:
http://9cays.com
Think of it as mini-mailing list software. For a lot of smallish
conversations, normal mailing list are too heavyweight (requiring
setup, moderation, admin, etc.), but group email is a pain because
messages