On 11 Jan 2010, at 16:18, Ksergses Ksergses wrote:
> j''utilise le gem SyslogLogger ( syslog-ng). et je veux avoir deux
> instances du logger
> (je veux avoir des fichiers de log sépares selon le logger utilisé)
> le probleme que le serveur ne considère qu''un seul à la fois !
>
> j''ai mis cela dans mon environement.rb
>
> RAILS_FIRST_LOGGER = SyslogLogger.new(''rails-admin'')
> RAILS_SECOND_LOGGER = SyslogLogger.new(''rails-user'')
>
> c''est toujours le premier qui appelé même si je fais un
>
> RAILS_SECOND_LOGGER.info " its the second one!!"
>
> c''est dans les fichiers log de RAILS_FIRST_LOGGER que je trouve
les
> traces!
>
> je vois pas la raison de cela !!
I think you''ll have more succes if you use the default mailing list
language.
Translation:
---
I''m using the SyslogLogger gem (syslog-ng) and I want two logger
instances (I want the log files to be split according to the used
logger). The problem is that the server doesn''t want to use more than
one at a time!
I''ve put the following in environment.rb
RAILS_FIRST_LOGGER = SyslogLogger.new(''rails-admin'')
RAILS_SECOND_LOGGER = SyslogLogger.new(''rails-user'')
It''s in the RAILS_FIRST_LOGGER file that I''m finding all the
entries.
I can''t find the reason why !!
---
Hope someone can help you out.
Best regards
Peter De Berdt
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.