@hclsoftware/secagent
Version:
IAST agent
31 lines (28 loc) • 1.11 kB
JavaScript
//IASTIGNORE
/*
* ****************************************************
* Licensed Materials - Property of HCL.
* (c) Copyright HCL Technologies Ltd. 2017, 2025.
* Note to U.S. Government Users *Restricted Rights.
* ****************************************************
*/
module.exports.mbSize = 1048576
module.exports.defaultMaxSizeFileInMbB = 20
module.exports.logTypes = Object.freeze({ EVENTS: 0, FINDINGS: 1 })
module.exports.logTypeName = Object.freeze({ 0: 'EVENTS', 1: 'FINDINGS' })
module.exports.logLevel = Object.freeze({
NONE: 0,
ERROR: 1,
WARNING: 2,
INFO: 3,
DEBUG: 4,
TRACE: 5,
strToLevel: {'NONE': 0, 'ERROR': 1, 'WARNING': 2, 'INFO': 3, 'DEBUG': 4, 'TRACE': 5},
levelToStr: {0: 'NONE', 1: 'ERROR', 2: 'WARNING', 3: 'INFO', 4: 'DEBUG', 5: 'TRACE'}
})
module.exports.maxSizeFileInBytes = this.mbSize * this.defaultMaxSizeFileInMbB
module.exports.defaultEventsLogLevel = 'DEBUG'
module.exports.defaultFindingsLogLevel = 'DEBUG'
module.exports.defaultEventsStdLogLevel = 'INFO'
module.exports.defaultFindingsStdLogLevel = 'NONE'