Skip to content

Commit

Permalink
#848: Added milli seconds to timestamp in log plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Dec 15, 2013
1 parent 78fcf00 commit 164315a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/log/html/logs.html
Expand Up @@ -62,7 +62,8 @@
<div class="title">
<i class="expandable-indicator"></i>
</div>
<div class="title">{{log.timestamp | logDateFilter}}</div>
<!-- TODO: use log.seq as it has timestamp with milli seconds -->
<div class="title">{{log.seq | logDateFilter}}</div>
<div class="title"><span class="text-{{logClass(log)}}"><i class="{{logIcon(log)}}"></i> {{log.level}}</span></div>
<div title="{{log.logger}}" ng-switch="hasLogSourceHref(log)">
<a ng-href="{{logSourceHref(log)}}" ng-switch-when="true">{{log.logger}}</a>
Expand Down
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/log/js/logPlugin.ts
Expand Up @@ -34,7 +34,7 @@ module Log {
filter('logDateFilter', function ($filter) {
var standardDateFilter = $filter('date');
return function (dateToFormat) {
return standardDateFilter(dateToFormat, 'yyyy-MM-dd HH:mm:ss');
return standardDateFilter(dateToFormat, 'yyyy-MM-dd HH:mm:ss.sss');
}
});

Expand Down
5 changes: 2 additions & 3 deletions hawtio-web/src/main/webapp/app/log/js/logs.ts
Expand Up @@ -6,12 +6,11 @@ module Log {
var log:Logging.Logger = Logger.get("Log");

export interface ILog {
// TODO What is the point of seq?
seq: string;
message: string;
timestamp: string;
logger: string;
level: string;
logger: string;
message: string;
}

export function LogController($scope, $routeParams, $location, localStorage, workspace:Workspace, $window, $document) {
Expand Down
10 changes: 5 additions & 5 deletions hawtio-web/src/main/webapp/css/site-base.css
Expand Up @@ -2652,7 +2652,7 @@ ul.zebra-list li {

.log-table .table-head div div:nth-child(4) {
font-weight: bold;
left: 225px;
left: 247px;
width: 326px;
text-align: center !important;
direction: ltr !important;
Expand Down Expand Up @@ -2697,13 +2697,13 @@ ul.zebra-list li {
.log-table li div div:nth-child(2) {
border-right: 1px solid #d4d4d4;
left: 18px;
width: 143px;
width: 180px;
z-index: 5;
}

.log-table li div div:nth-child(3) {
border-right: 1px solid #d4d4d4;
left: 168px;
left: 190px;
width: 60px;
z-index: 5;
text-align: center;
Expand All @@ -2716,11 +2716,11 @@ ul.zebra-list li {
direction: rtl;
z-index: 3;
left: 0;
width: 551px;
width: 573px;
}

.log-table li div div:nth-child(5) {
left: 558px;
left: 580px;
right: 0;
padding-left: 5px;
}
Expand Down

0 comments on commit 164315a

Please sign in to comment.