forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.js
More file actions
48 lines (43 loc) · 1.42 KB
/
Copy pathLog.js
File metadata and controls
48 lines (43 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {Config} from './Config';
/**
* @private
* @class SuperMap.LevelRenderer.Tool.Log
* @category Visualization Theme
* @classdesc LevelRenderer 工具-日志
*/
export class Log {
/**
* @function SuperMap.LevelRenderer.Tool.Log.constructor
* @description 构造函数。
*/
constructor() {
this.CLASS_NAME = "SuperMap.LevelRenderer.Tool.Log";
return function () {
if (Config.debugMode === 0) {
return;
} else if (Config.debugMode == 1) {
for (let k in arguments) {
throw new Error(arguments[k]);
}
} else if (Config.debugMode > 1) {
for (let k in arguments) {
console.log(arguments[k]);
}
}
};
/* for debug
return function(mes) {
document.getElementById('wrong-message').innerHTML =
mes + ' ' + (new Date() - 0)
+ '<br/>'
+ document.getElementById('wrong-message').innerHTML;
};
*/
}
destory() {
return true;
}
}