2016-05-12 12:30:01 +02:00
|
|
|
(function() {
|
|
|
|
'use strict';
|
2016-06-14 07:56:25 +02:00
|
|
|
|
|
|
|
angular
|
2016-05-12 12:30:01 +02:00
|
|
|
.module('harbor.services.log')
|
|
|
|
.factory('ListIntegratedLogService', ListIntegratedLogService);
|
2016-06-14 07:56:25 +02:00
|
|
|
|
|
|
|
ListIntegratedLogService.$inject = ['$http', '$log'];
|
|
|
|
|
|
|
|
function ListIntegratedLogService($http, $log) {
|
2016-05-12 12:30:01 +02:00
|
|
|
|
|
|
|
return listIntegratedLog;
|
|
|
|
|
2016-06-14 07:56:25 +02:00
|
|
|
function listIntegratedLog(lines) {
|
|
|
|
$log.info('Get recent logs of the projects which the user is a member of:');
|
|
|
|
return $http
|
|
|
|
.get('/api/logs', {
|
|
|
|
'params' : {
|
|
|
|
'lines': lines,
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-05-12 12:30:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})();
|