summaryrefslogtreecommitdiff
path: root/app/views/admin/logs/show.html.haml
blob: 25644d6321ab7903760b0d52e031d2110fc463a1 (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
%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'

%p.light To prevent perfomance issues admin logs output the last 2000 lines
.tab-content
  .tab-pane.active#githost
    .file_holder#README
      .file_title
        %i.icon-file
        githost.log
        .right
          = link_to '#', class: 'log-bottom' do
            %i.icon-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.icon-file
        application.log
        .right
          = link_to '#', class: 'log-bottom' do
            %i.icon-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.icon-file
        production.log
        .right
          = link_to '#', class: 'log-bottom' do
            %i.icon-arrow-down
            Scroll down
      .file_content.logs
        %ol
          - Gitlab::Logger.read_latest_for('production.log').each do |line|
            %li
              %p= line