Google Groups Home
Help | Sign in
Message from discussion assert_event_logged ???
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Cameron Barrie  
View profile
 More options Mar 3, 11:42 pm
From: Cameron Barrie <pho...@mvpaustralia.com.au>
Date: Tue, 4 Mar 2008 15:42:23 +1100
Local: Mon, Mar 3 2008 11:42 pm
Subject: Re: [rails-oceania] assert_event_logged ???
Could you check if the logger.class was sent a method such as info or  
error?

Cameron

On 04/03/2008, at 3:37 PM, taryn wrote:

> Does anyone know of a way to test whether or not a log event actually
> made it into the log?
> We want to make sure that some of our important events (eg "user x was
> archived by user y") actually make it into the log.

> but AFAICS there's no way to get information back *out* of logger -
> it's input-only.

> I could hook up something ugly by setting up a fake logger and
> checking if it's empty after running a block of code... but I was
> hoping for something more elegent.

> Any clues?
> Anyone done this before?
> Anyone think it's a stupid idea (and willing to share why)?

> Taryn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google