BigW Consortium Gitlab
This introduces JSON logging for Rails views saved to a file called `development_json.log`, `production_json.log`, etc. For example, instead of this unparsable log: ``` Started GET "/" for 127.0.0.1 at 2012-03-10 14:28:14 +0100 Processing by HomeController#index as HTML Rendered text template within layouts/application (0.0ms) Rendered layouts/_assets.html.erb (2.0ms) Rendered layouts/_top.html.erb (2.6ms) Rendered layouts/_about.html.erb (0.3ms) Rendered layouts/_google_analytics.html.erb (0.4ms) Completed 200 OK in 79ms (Views: 78.8ms | ActiveRecord: 0.0ms) ``` We get a single line with this: ``` {"method":"GET","path":"/,"format":"html","controller":"HomeController","action":"index","status":200,"duration":79,"view":78.8,"db":0.0,"location":"http://localhost/","time":"2017-07-18 09:35:17 -0700"} ``` Part of #20060
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
0_acts_as_taggable.rb | Loading commit data... | |
0_inflections.rb | Loading commit data... | |
0_post_deployment_migrations.rb | Loading commit data... | |
1_settings.rb | Loading commit data... | |
2_app.rb | Loading commit data... | |
5_backend.rb | Loading commit data... | |
6_validations.rb | Loading commit data... | |
7_redis.rb | Loading commit data... | |
8_gitaly.rb | Loading commit data... | |
8_metrics.rb | Loading commit data... | |
active_record_data_types.rb | Loading commit data... | |
active_record_locking.rb | Loading commit data... | |
active_record_preloader.rb | Loading commit data... | |
active_record_table_definition.rb | Loading commit data... | |
additional_headers_interceptor.rb | Loading commit data... | |
ar5_batching.rb | Loading commit data... | |
ar_speed_up_migration_checking.rb | Loading commit data... | |
attr_encrypted_no_db_connection.rb | Loading commit data... | |
backtrace_silencers.rb | Loading commit data... | |
bootstrap_form.rb | Loading commit data... | |
bullet.rb | Loading commit data... | |
carrierwave.rb | Loading commit data... | |
chronic_duration.rb | Loading commit data... | |
connection_fix.rb | Loading commit data... | |
cookies_serializer.rb | Loading commit data... | |
date_time_formats.rb | Loading commit data... | |
default_url_options.rb | Loading commit data... | |
devise.rb | Loading commit data... | |
devise_password_length.rb.example | Loading commit data... | |
disable_email_interceptor.rb | Loading commit data... | |
doorkeeper.rb | Loading commit data... | |
doorkeeper_openid_connect.rb | Loading commit data... | |
email_template_interceptor.rb | Loading commit data... | |
etag_caching.rb | Loading commit data... | |
fast_gettext.rb | Loading commit data... | |
fix_local_cache_middleware.rb | Loading commit data... | |
flipper.rb | Loading commit data... | |
forbid_sidekiq_in_transactions.rb | Loading commit data... | |
gettext_rails_i18n_patch.rb | Loading commit data... | |
gitlab_shell_secret_token.rb | Loading commit data... | |
gitlab_workhorse_secret.rb | Loading commit data... | |
go_get.rb | Loading commit data... | |
gollum.rb | Loading commit data... | |
hamlit.rb | Loading commit data... | |
health_check.rb | Loading commit data... | |
kaminari_config.rb | Loading commit data... | |
lograge.rb | Loading commit data... | |
math_lexer.rb | Loading commit data... | |
mime_types.rb | Loading commit data... | |
mysql_ignore_postgresql_options.rb | Loading commit data... | |
omniauth.rb | Loading commit data... | |
peek.rb | Loading commit data... | |
plantuml_lexer.rb | Loading commit data... | |
postgresql_cte.rb | Loading commit data... | |
postgresql_limit_fix.rb | Loading commit data... | |
postgresql_opclasses_support.rb | Loading commit data... | |
premailer.rb | Loading commit data... | |
rack_attack.rb.example | Loading commit data... | |
rack_attack_git_basic_auth.rb | Loading commit data... | |
rack_attack_logging.rb | Loading commit data... | |
rack_lineprof.rb | Loading commit data... | |
relative_naming_ci_namespace.rb | Loading commit data... | |
relative_url.rb.sample | Loading commit data... | |
request_context.rb | Loading commit data... | |
request_profiler.rb | Loading commit data... | |
routing_draw.rb | Loading commit data... | |
rspec_profiling.rb | Loading commit data... | |
rugged_use_gitlab_git_attributes.rb | Loading commit data... | |
secret_token.rb | Loading commit data... | |
sentry.rb | Loading commit data... | |
server_uptime.rb | Loading commit data... | |
session_store.rb | Loading commit data... | |
sherlock.rb | Loading commit data... | |
sidekiq.rb | Loading commit data... | |
smtp_settings.rb.sample | Loading commit data... | |
static_files.rb | Loading commit data... | |
time_zone.rb | Loading commit data... | |
trusted_proxies.rb | Loading commit data... | |
warden.rb | Loading commit data... | |
workhorse_multipart.rb | Loading commit data... | |
wrap_parameters.rb | Loading commit data... |