diff --git a/config/application.rb b/config/application.rb
index <HASH>..<HASH> 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -40,5 +40,9 @@ module FluentdUi
     # config.time_zone =
 
     require Rails.root.join("lib", "fluentd-ui")
+
+    if ENV["FLUENTD_UI_LOG_PATH"].present?
+      config.logger = ActiveSupport::Logger.new(ENV["FLUENTD_UI_LOG_PATH"])
+    end
   end
 end
Write to specified file path for logging by ENV['FLUENTD_UI_LOG_PATH']