view logs in UX
This commit is contained in:
parent
6723cba56a
commit
f47d6b0564
16 changed files with 188 additions and 47 deletions
19
src/js/services/historicLog.js
Normal file
19
src/js/services/historicLog.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
var logs = [];
|
||||
angular.module('copayApp.services')
|
||||
.factory('historicLog', function historicLog() {
|
||||
var root = {};
|
||||
|
||||
root.add = function(level, msg) {
|
||||
logs.push({
|
||||
level: level,
|
||||
msg: msg,
|
||||
});
|
||||
};
|
||||
|
||||
root.get = function() {
|
||||
return logs;
|
||||
};
|
||||
|
||||
return root;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue