module App
Defined in:
constants.crConstant Summary
-
COOKIE_SESSION_KEY =
ENV["COOKIE_SESSION_KEY"]? || "_spider_gazelle_"
-
COOKIE_SESSION_SECRET =
ENV["COOKIE_SESSION_SECRET"]? || "4f74c0b358d5bab4000dd3c75465dc2c"
-
DEFAULT_HOST =
ENV["SG_SERVER_HOST"]? || "0.0.0.0"
-
DEFAULT_PORT =
(ENV["SG_SERVER_PORT"]? || 3000).to_i
-
DEFAULT_PROCESS_COUNT =
(ENV["SG_PROCESS_COUNT"]? || 1).to_i
-
ENVIRONMENT =
ENV["SG_ENV"]? || "development"
-
IS_PRODUCTION =
ENVIRONMENT == "production"
-
Log =
::Log.for(NAME)
-
LOG_BACKEND =
ActionController.default_backend
-
NAME =
"Imagine-Monitor"
-
STATIC_FILE_PATH =
ENV["PUBLIC_WWW_PATH"]? || "./www"
-
VERSION =
"0.1.0"
Class Method Summary
-
.register_severity_switch_signals : Nil
Registers callbacks for USR1 signal
- .running_in_production?
-
.trace? : Bool
flag to indicate if we're outputting trace logs
Class Method Detail
def self.register_severity_switch_signals : Nil
#
Registers callbacks for USR1 signal
USR1
toggles :trace
for all Log
instances
namespaces
's Log
s to :info
if production
is true
,
otherwise it is set to :debug
.
Log
's not registered under namespaces
are toggled to default
Usage
$ kill -USR1 ${the_application_pid}