1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-20 13:11:41 +00:00

Display server logs

This commit is contained in:
jendib
2013-08-03 21:51:15 +02:00
parent c0e7e34373
commit f5871e89e2
8 changed files with 60 additions and 1 deletions

View File

@@ -5,6 +5,9 @@
<li class="nav-header">Personal settings</li>
<li ng-class="{active: $uiRoute}" ui-route="/settings/account"><a href="#/settings/account">User account</a></li>
<li ng-class="{active: $uiRoute}" ui-route="/settings/session"><a href="#/settings/session">Opened sessions</a></li>
<li class="nav-header">General settings</li>
<li ng-class="{active: $uiRoute}" ui-route="/settings/log"><a href="#/settings/log">Server logs</a></li>
</ul>
</div>

View File

@@ -0,0 +1,18 @@
<h1>Server <small>logs</small></h1>
<table class="table table-striped table-hover table-logs">
<thead>
<tr>
<th>Date</th>
<th>Tag</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="log in logs"
ng-class="{ info: log.level == 'INFO' || log.level == 'DEBUG', warn: log.level == 'WARN', error: log.level == 'ERROR' || log.level == 'FATAL' }">
<td>{{ log.date | date: 'yyyy-MM-dd HH:mm' }}</td>
<td>{{ log.tag }}</td>
<td>{{ log.message }}</td>
</tr>
</tbody>
</table>