summaryrefslogtreecommitdiff
path: root/app/views/admin/logs/show.html.haml
blob: b3f8f012f000b7e8ef76963803582e2e21e71f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%ul.nav.nav-tabs.log-tabs
  %li.active
    = link_to "githost.log", "#githost", 'data-toggle' => 'tab'
  %li
    = link_to "application.log", "#application", 'data-toggle' => 'tab'
  %li
    = link_to "production.log", "#production", 'data-toggle' => 'tab'
  %li
    = link_to "sidekiq.log", "#sidekiq", 'data-toggle' => 'tab'

%p.light To prevent performance issues admin logs output the last 2000 lines
.tab-content
  .tab-pane.active#githost
    .file-holder#README
      .file-title
        %i.fa.fa-file
        githost.log
        .pull-right
          = link_to '#', class: 'log-bottom' do
            %i.fa.fa-arrow-down
            Scroll down
      .file-content.logs
        %ol
          - Gitlab::GitLogger.read_latest.each do |line|
            %li
              %p= line
  .tab-pane#application
    .file-holder#README
      .file-title
        %i.fa.fa-file
        application.log
        .pull-right
          = link_to '#', class: 'log-bottom' do
            %i.fa.fa-arrow-down
            Scroll down
      .file-content.logs
        %ol
          - Gitlab::AppLogger.read_latest.each do |line|
            %li
              %p= line
  .tab-pane#production
    .file-holder#README
      .file-title
        %i.fa.fa-file
        production.log
        .pull-right
          = link_to '#', class: 'log-bottom' do
            %i.fa.fa-arrow-down
            Scroll down
      .file-content.logs
        %ol
          - Gitlab::Logger.read_latest_for('production.log').each do |line|
            %li
              %p= line
  .tab-pane#sidekiq
    .file-holder#README
      .file-title
        %i.fa.fa-file
        sidekiq.log
        .pull-right
          = link_to '#', class: 'log-bottom' do
            %i.fa.fa-arrow-down
            Scroll down
      .file-content.logs
        %ol
          - Gitlab::Logger.read_latest_for('sidekiq.log').each do |line|
            %li
              %p= line