// `info` can report any string, number, array, and object, but it reports data only when the user opening the page is in the allowlistaegis.info('test');aegis.info('test', 123, ['a', 'b', 'c', 1], {a: '123'});// You can also report a specified object and pass in the `ext` and `trace` parameters// You must pass in the `msg` field in this caseaegis.info({msg: 'test',ext1: 'ext1',ext2: 'ext2',ext3: 'ext3',trace: 'trace',});// Different from `info`, `infoAll` reports full dataaegis.infoAll({msg: 'test',ext1: 'ext1',ext2: 'ext2',ext3: 'ext3',trace: 'trace',});// `error` indicates a JavaScript error log, whose full data will also be reported. Generally, it is used to actively get and report JavaScript exceptionsaegis.error({msg: 'test',ext1: 'ext1',ext2: 'ext2',ext3: 'ext3',trace: 'trace',});aegis.error(new Error('Actively report an error'));// The default log type of `aegis.report` is `report`, but currently you can pass in any log typeaegis.report({msg: 'This is an Ajax error log',level: Aegis.LogType.AJAX_ERROR,ext1: 'ext1',ext2: 'ext2',ext3: 'ext3',trace: 'trace',});
Feedback