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

Valery Sizov's avatar
Valery Sizov committed
8
%div{ class: container_class }
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
  %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'
  .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