BigW Consortium Gitlab

show.html.haml 1.1 KB
Newer Older
1
- @no_container = true
2
- page_title "Logs"
Ciro Santilli committed
3
- loggers = [Gitlab::GitLogger, Gitlab::AppLogger,
4
             Gitlab::EnvironmentLogger, Gitlab::SidekiqLogger,
5
             Gitlab::RepositoryCheckLogger]
6 7
= render 'admin/background_jobs/head'

8
%div{ class: container_class }
9 10
  %ul.nav-links.log-tabs
    - loggers.each do |klass|
11
      %li{ class: (klass == Gitlab::GitLogger ? 'active' : '') }>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
        = link_to klass::file_name, "##{klass::file_name_noext}",
            'data-toggle' => 'tab'
  .row-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