مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
tidy greylog
هذا الالتزام موجود في:
@@ -3,11 +3,6 @@ require 'logger'
|
||||
module Postal
|
||||
class AppLogger < Logger
|
||||
|
||||
def self.greylog_notifier
|
||||
@greylog_notifier ||= Postal.config.logging.greylog ? GELF::Notifier.new(Postal.config.logging.greylog.host, Postal.config.logging.greylog.port) : nil
|
||||
|
||||
end
|
||||
|
||||
def initialize(log_name, *args)
|
||||
@log_name = log_name
|
||||
super(*args)
|
||||
@@ -33,6 +28,14 @@ module Postal
|
||||
end
|
||||
true
|
||||
end
|
||||
|
||||
def self.greylog?
|
||||
!!Postal.config.logging.greylog&.host
|
||||
end
|
||||
|
||||
def self.greylog_notifier
|
||||
@greylog_notifier ||= greylog? ? GELF::Notifier.new(Postal.config.logging.greylog.host, Postal.config.logging.greylog.port) : nil
|
||||
end
|
||||
end
|
||||
|
||||
class LogFormatter
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم