summaryrefslogtreecommitdiff
path: root/app/views/admin/logs/show.html.haml
blob: 4b475a4d8fafd2bf96c756a970799a637d31746f (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
- page_title "Logs"
- loggers = [Gitlab::GitLogger, Gitlab::AppLogger,
             Gitlab::ProductionLogger, Gitlab::SidekiqLogger,
             Gitlab::RepositoryCheckLogger]
%ul.nav-links.log-tabs
  - loggers.each do |klass|
    %li{ class: (klass == Gitlab::GitLogger ? 'active' : '') }
      = link_to klass::file_name, "##{klass::file_name_noext}",
          'data-toggle' => 'tab'
.gray-content-block
  To prevent performance issues admin logs output the last 2000 lines
.tab-content
  - loggers.each do |klass|
    .tab-pane{ class: (klass == Gitlab::GitLogger ? 'active' : ''),
        id: klass::file_name_noext }
      .file-holder#README
        .file-title
          %i.fa.fa-file
          = klass::file_name
          .pull-right
            = link_to '#', class: 'log-bottom' do
              %i.fa.fa-arrow-down
              Scroll down
        .file-content.logs
          %ol
            - klass.read_latest.each do |line|
              %li
                %p= line