BigW Consortium Gitlab

show.html.haml 985 Bytes
Newer Older
1
- page_title "Logs"
Ciro Santilli committed
2
- loggers = [Gitlab::GitLogger, Gitlab::AppLogger,
Jacob Vosmaer committed
3
             Gitlab::ProductionLogger, Gitlab::SidekiqLogger,
4
             Gitlab::RepositoryCheckLogger]
5
%ul.nav-links.log-tabs
Ciro Santilli committed
6 7 8 9
  - loggers.each do |klass|
    %li{ class: (klass == Gitlab::GitLogger ? 'active' : '') }
      = link_to klass::file_name, "##{klass::file_name_noext}",
          'data-toggle' => 'tab'
10
.row-content-block
11
  To prevent performance issues admin logs output the last 2000 lines
randx committed
12
.tab-content
Ciro Santilli committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  - 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