1 <link href=
"chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html" rel=
"import">
2 <link href=
"chrome://resources/polymer/v1_0/iron-icons/communication-icons.html" rel=
"import">
3 <link href=
"chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html" rel=
"import">
4 <link href=
"chrome://resources/polymer/v1_0/paper-toolbar/paper-toolbar.html" rel=
"import">
5 <link href=
"chrome://resources/polymer/v1_0/polymer/polymer.html" rel=
"import">
6 <link href=
"log-buffer.html" rel=
"import">
8 <dom-module id=
"log-panel">
13 flex-direction: column;
17 background-color: #
069BDE;
18 box-shadow:
0px
3px
2px rgba(
0,
0,
0,
0.2);
23 paper-toolbar paper-icon-button {
32 border-bottom:
1px solid rgba(
0,
0,
0,
0.12);
33 font-family: monospace;
38 .list-item[
severity=
"1"] {
39 background-color: #fffcef;
43 .list-item[
severity=
"2"] {
44 background-color: #fff1f1;
58 .list-item:hover .item-log {
65 <paper-toolbar class=
"layout horizontal end-justified center"
66 on-click=
"clearLogs_">
67 <paper-icon-button icon=
"communication:clear-all"></paper-icon-button>
70 <log-buffer id='logBuffer'
logs=
"{{logs}}"></log-buffer>
71 <div id=
"list" class=
"flex">
72 <template is=
"dom-repeat" items=
"[[logs]]">
73 <div class=
"list-item" severity$=
"[[item.severity]]">
74 <div class=
"item-metadata layout horizontal">
75 <div>[[item.time]]
</div>
76 <div class=
"flex"></div>
77 <div>[[computeFileAndLine_(item)]]
</div>
79 <pre class=
"item-log flex">[[item.text]]
</pre>
84 <script src=
"log-panel.js"></script>