Merge pull request #6417 from ajp8164/feat/improved-log

Enhance logging with timestamps and filtering.
This commit is contained in:
Javier Donadío 2017-07-20 12:11:45 -03:00 committed by GitHub
commit e2cd5650ed
14 changed files with 356 additions and 47 deletions

View file

@ -1 +1 @@
@import "gravatar"
@import "gravatar";

View file

@ -0,0 +1,62 @@
#check-bar {
$bar-widths: (
// defined by user, example:
// error: 10%,
// warn: 37%,
// info: 65%,
// debug: 90%
);
.item {
padding: 40px;
}
.checkbox-icon {
width: 22px;
height: 22px;
}
.checkbox-icon:after {
border: none;
}
.check-bar {
position: relative;
.initial-bar-default {
border: 2px solid $v-success-color;
width: 0%;
top: 40px;
z-index: 99;
border-radius: 10px;
position: absolute;
}
.initial-bar {
}
@each $name, $bar-width in $bar-widths {
.fill-bar-#{$name} {
width: $bar-width !important;
transition: width .2s;
}
}
.base-bar {
position: absolute;
width: 100%;
border-bottom: 2px solid #f2f2f2;
top: 41px;
z-index: 98;
left: 0px;
}
&.list {
margin-top: 20px;
display: flex;
justify-content: space-between;
.custom-checkbox {
text-align: -webkit-center;
.item {
border-style: none;
z-index: 999;
background-color: inherit;
}
label {
padding-top: 5px;
}
}
}
}
}

View file

@ -0,0 +1,88 @@
log-options {
$border-color: #EFEFEF;
.bp-action-sheet__sheet {
padding-left: 2rem;
padding-right: .75rem;
}
.entry {
border: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-bottom: 1px;
overflow: visible;
> i {
color: $v-accent-color;
padding: 0 0 5px 0;
margin-left: -5px;
> img {
height: 39px;
width: 39px;
padding: 4px;
}
}
}
.entry-inner {
display: flex;
position: relative;
padding-top: 16px;
padding-bottom: 16px;
&::after {
display: block;
position: absolute;
width: 100%;
height: 1px;
background: $border-color;
bottom: 0;
right: 0;
content: '';
}
}
.entry-details {
flex-grow: 1;
.entry-name {
padding-bottom: 5px;
}
}
#check-bar {
$bar-widths: (
// Order must match weight, see services/historicLog.js
error: 10%,
warn: 35%,
info: 65%,
debug: 90%
);
.check-bar {
.initial-bar {
border: 2px solid $v-accent-color;
}
@each $name, $bar-width in $bar-widths {
.fill-bar-#{$name} {
width: $bar-width !important;
}
}
}
.head .checkbox-icon {
width: 22px;
height: 22px;
top: 0;
}
.checkbox-icon {
width: 10px;
height: 10px;
top: 6px;
}
}
}

View file

@ -123,6 +123,20 @@
color: #00901B;
}
}
.log-bg {
background: white;
}
.log-entry {
font-size: 12px;
line-height: 18px;
border: none;
}
.log-timestamp {
font-weight: bold;
}
.log-level {
font-weight: bold;
}
}
#tab-settings {

View file

@ -48,3 +48,5 @@
@import "integrations/integrations";
@import "custom-amount";
@import "includes/pin";
@import "includes/logOptions";
@import "includes/checkBar";