I''m having problems with both logger and log4r. They both work fine on my local Windows machine but do not create the .log files when I try them on my hosted UNIX server (TextDrive) Below is the code for both log4r and logger. Both methods write the .log file to the root Rails directory (not the directory where the code is located). I changed the permission to 777 on the Root Rails dir for the sake of testing and both methods still do not generate .log files. Any ideas? Thanks! chirag Using logger --------------------------------------------------------------- #require ''logger'' def halo_logger logger_fu = Logger.new(''logfile.log'') logger_fu.debug{ "params #{params} \n" } end Using log4r -------------------------------------------------------------- require ''log4r'' include Log4r def halo_log4r config = { "filename" => "fu.log", "maxsize" => 16000, "trunc" => true } logger_fu = Logger.new ''myLog'' #alternate way of adding a file outputter #out = RollingFileOutputter.new("myLog", config) #logger_fu.add(out) logger_fu.outputters = RollingFileOutputter.new("myLog", config); logger_fu.level = DEBUG logger_fu.debug{ "params #{params} \n" } end --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---