Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a4b3723e
Commit
a4b3723e
authored
Feb 06, 2020
by
Aakriti Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add structured app logs to admin/logs
parent
be711a8d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/controllers/admin/logs_controller.rb
app/controllers/admin/logs_controller.rb
+1
-1
changelogs/unreleased/ag-addjson-log-to-admin-logs.yml
changelogs/unreleased/ag-addjson-log-to-admin-logs.yml
+5
-0
spec/features/admin/admin_browses_logs_spec.rb
spec/features/admin/admin_browses_logs_spec.rb
+1
-1
No files found.
app/controllers/admin/logs_controller.rb
View file @
a4b3723e
...
...
@@ -10,7 +10,7 @@ class Admin::LogsController < Admin::ApplicationController
def
loggers
@loggers
||=
[
Gitlab
::
AppLogger
,
Gitlab
::
App
Json
Logger
,
Gitlab
::
GitLogger
,
Gitlab
::
EnvironmentLogger
,
Gitlab
::
SidekiqLogger
,
...
...
changelogs/unreleased/ag-addjson-log-to-admin-logs.yml
0 → 100644
View file @
a4b3723e
---
title
:
Replace unstructured application logs with structured (JSON) application logs in the admin interface
merge_request
:
24614
author
:
type
:
other
spec/features/admin/admin_browses_logs_spec.rb
View file @
a4b3723e
...
...
@@ -10,7 +10,7 @@ describe 'Admin browses logs' do
it
'shows available log files'
do
visit
admin_logs_path
expect
(
page
).
to
have_link
'application.log'
expect
(
page
).
to
have_link
'application
_json
.log'
expect
(
page
).
to
have_link
'git_json.log'
expect
(
page
).
to
have_link
'test.log'
expect
(
page
).
to
have_link
'sidekiq.log'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment