abstract class Application
- Application
- ActionController::Base
- Reference
- Object
Direct Known Subclasses
Defined in:
controllers/application.crConstant Summary
-
AFTER =
{} of Nil => Nil
-
AROUND =
{} of Nil => Nil
-
BEFORE =
{set_request_id => {nil, nil}, set_date_header => {nil, nil}} of Nil => Nil
-
FORCE =
{} of Nil => Nil
-
LOCAL_AFTER =
{} of Nil => Nil
-
function => options
-
LOCAL_AROUND =
{} of Nil => Nil
-
function => options
-
LOCAL_BEFORE =
{set_request_id => {nil, nil}, set_date_header => {nil, nil}} of Nil => Nil
-
function => options
-
LOCAL_FORCE =
{} of Nil => Nil
-
function => options
-
LOCAL_RESCUE =
{} of Nil => Nil
-
function => options
-
LOCAL_ROUTES =
{} of Nil => Nil
-
function => options
-
LOCAL_SKIP =
{} of Nil => Nil
-
function => options
-
Log =
::App::Log.for("controller")
-
Configure your log source name
NOTE : this is chaining from App::Log
-
NAMESPACE =
["/application"]
-
default namespace based on class
-
RESCUE =
{} of Nil => Nil
-
ROUTES =
{} of Nil => Nil
-
SKIP =
{} of Nil => Nil
Instance Method Summary
- #set_date_header
-
#set_request_id
This makes it simple to match client requests with server side logs.
Macro Summary
- __inherit_after_filters__
- __inherit_around_filters__
- __inherit_before_filters__
- __inherit_force_filters__
- __inherit_rescue_filters__
- __inherit_routes_filters__
- __inherit_skip_filters__
Instance Method Detail
def set_request_id
#
This makes it simple to match client requests with server side logs. When building microservices this ID should be propagated to upstream services.