mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Implemented: Simple logging page (#279)
This commit is contained in:
28
modules/internal/log.js
Normal file
28
modules/internal/log.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Log
|
||||
* Belongs to LocalCDN
|
||||
*
|
||||
* @author nobody
|
||||
* @since 2021-02-19
|
||||
*
|
||||
* @license MPL 2.0
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* Log
|
||||
*/
|
||||
|
||||
var log = {};
|
||||
|
||||
log.append = function (initiator, resource, target, highlight) {
|
||||
log.data.push({initiator, resource, target, highlight});
|
||||
};
|
||||
|
||||
log.data = [];
|
Reference in New Issue
Block a user