0% found this document useful (0 votes)
18 views

Upload To Download22031932

The document discusses logging functions and utilities for monitoring applications. It defines logging levels like error, warn, debug etc and utilities to handle logging, timing, sampling and serialization. Context objects are used to group log data and methods provided to add, remove and clear context properties.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Upload To Download22031932

The document discusses logging functions and utilities for monitoring applications. It defines logging levels like error, warn, debug etc and utilities to handle logging, timing, sampling and serialization. Context objects are used to group log data and methods provided to add, remove and clear context properties.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

(window.webpackJsonp=window.webpackJsonp||[]).

push([[1],{39:function(t,e,n){"use
strict";function r(t,e){var n,r=window;return r.Zone&&"function"==typeof
r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}n.d(e,"a",(function()
{return go}));var
i={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=function(t)
{for(var e=[],n=1;n<arguments.length;n++)e[n-
1]=arguments[n];Object.prototype.hasOwnProperty.call(i,t)||
(t=i.log),o[t].apply(o,e)};o.debug=console.debug.bind(console),o.log=console.log.bi
nd(console),o.info=console.info.bind(console),o.warn=console.warn.bind(console),o.e
rror=console.error.bind(console);var a,u=function(t,e,n){if(n||
2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||
(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||
Array.prototype.slice.call(e))},s=!1;function c(t){s=t}function d(t){return
function(){return f(t,this,arguments)}}function f(t,e,n){try{return
t.apply(e,n)}catch(t){if(l(i.error,t),a)try{a(t)}catch(t){l(i.error,t)}}}function
l(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];s&&o.apply(void
0,u([t,"[MONITOR]"],e,!1))}function p(t,e){return r(window,"setTimeout")
(d(t),e)}function _(t){r(window,"clearTimeout")(t)}var
v=1e3,E=60*v,A=60*E,m=365*(24*A),S=1024,T=1024*S;function g(t,e,n){var r,i,o=!n||
void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,u=!
1;return{throttled:function(){for(var n=[],s=0;s<arguments.length;s+
+)n[s]=arguments[s];u?r=n:(o?t.apply(void 0,n):r=n,u=!0,i=p((function()
{a&&r&&t.apply(void 0,r),u=!1,r=void 0}),e))},cancel:function(){_(i),u=!1,r=void
0}}}function I(t){for(var e=[],n=1;n<arguments.length;n++)e[n-
1]=arguments[n];return e.forEach((function(e){for(var n in
e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function h(t){return
I({},t)}function R(t){return
t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-
").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/
g,R)}function C(t){return 0!==t&&100*Math.random()<=t}function O(t,e)
{return+t.toFixed(e)}function y(){}function N(t,e,n){if("object"!=typeof t||
null===t)return JSON.stringify(t);var
r=b(Object.prototype),i=b(Array.prototype),o=b(Object.getPrototypeOf(t)),a=b(t);try
{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize
object>"}finally{r(),i(),o(),a()}}function b(t){var e=t,n=e.toJSON;return n?(delete
e.toJSON,function(){e.toJSON=n}):y}function L(t,e){return-1!==t.indexOf(e)}function
D(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof
Set)t.forEach((function(t){return e.push(t)}));else for(var n=0;n<t.length;n+
+)e.push(t[n]);return e}function w(t,e){for(var n=0;n<t.length;n+=1){var
r=t[n];if(e(r,n))return r}}function U(t){return M(t)&&t>=0&&t<=100}function M(t)
{return"number"==typeof t}function B(t){return Object.keys(t).map((function(e)
{return t[e]}))}function P(t){return Object.keys(t).map((function(e)
{return[e,t[e]]}))}function k(t){return 0===Object.keys(t).length}function x(t,e)
{return t.slice(0,e.length)===e}function G(){if("object"==typeof globalThis)return
globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function()
{return this},configurable:!0});var t=_dd_temp_;return delete
Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?
self:"object"==typeof window?window:{}),t}function F(t){if(t.origin)return
t.origin;var
e=t.host.replace(/(:80|:443)$/,"");return"".concat(t.protocol,"//").concat(e)}funct
ion H(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]
+)")).exec(t);return n?n[1]:void 0}function V(t,e,n){void 0===n&&(n="");var
r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?
t:"".concat(t.slice(0,i)).concat(n)}function Y(t){return
null===t?"null":Array.isArray(t)?"array":typeof t}function K(t,e,n){if(void
0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new
WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||
t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var
n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!
=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e
instanceof RegExp){var r=e.flags||
[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"
u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e))
{if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;+
+o)i[o]=K(i[o],e[o],n);return i}var a="object"===Y(t)?t:{};for(var u in
e)Object.prototype.hasOwnProperty.call(e,u)&&(a[u]=K(a[u],e[u],n));return
a}}function W(t){return K(void 0,t)}function q(){for(var
t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++)
{var o=i[r];null!=o&&(t=K(t,o))}return t}function j(t){var
e=Y(t);return"string"===e||"function"===e||t instanceof RegExp}function X(t,e,n)
{return void 0===n&&(n=!1),t.some((function(t){try{if("function"==typeof t)return
t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?
x(e,t):t===e}catch(t){o.error(t)}return!1}))}function Z(t){return
window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\
d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\
0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-
1).toString(16)," "):"\\".concat(t)}))}var J=/[^\u0000-\u007F]/;function z(t)
{return J.test(t)?void 0!==window.TextEncoder?(new
TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Q(t,e){return
function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return
t.apply(void 0,n)}catch(t){o.error(e,t)}}}function $(t){void 0===t&&(t=z);var
e,n={};return{getBytesCount:function(){return void
0===e&&(e=t(N(n))),e},get:function(){return n},add:function(t,r){n[t]=r,e=void
0},remove:function(t){delete n[t],e=void 0},set:function(t){n=t,e=void
0},getContext:function(){return W(n)},setContext:function(t){n=W(t),e=void
0},setContextProperty:function(t,r){n[t]=W(r),e=void
0},removeContextProperty:function(t){delete n[t],e=void 0},clearContext:function()
{n={},e=void 0}}}var tt,et=function(){function t(){this.buffer=[]}return
t.prototype.add=function(t)
{this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.drain=function()
{this.buffer.forEach((function(t){return t()})),this.buffer.length=0},t}();function
nt(t){return{relative:t,timeStamp:rt(t)}}function rt(t){var e=ot()-
performance.now();return e>pt()?M

You might also like