{"_id":"@bernierllc/nevar-audit-logger","_rev":"7-335f55108d32b22dd5b99d4c1dc2e6aa","name":"@bernierllc/nevar-audit-logger","dist-tags":{"latest":"0.6.1"},"versions":{"0.0.1":{"name":"@bernierllc/nevar-audit-logger","version":"0.0.1","keywords":["oidc","trusted-publishing","setup"],"_id":"@bernierllc/nevar-audit-logger@0.0.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"5361aaa75e3f9dfd0ce337867639d5e2b2c9b882","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.0.1.tgz","fileCount":2,"integrity":"sha512-B0Tyd1PjSz3w72wFNDjW7n+X5m0HMrzsZe07lXOiyBOygoQ2yipsMRqbeBAlM/iMLAU/ASY+fX4Uekua8YHOrA==","signatures":[{"sig":"MEUCIGd7zHmvD8IdJqQi65A1gdLel9cS+wEtd2cel6LtRBFXAiEAq7UcH7ZnkGH2+Vbp+KehWKDC8TixUWC4oyDC4bhz2xY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2083},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_npmVersion":"11.11.0","description":"OIDC trusted publishing setup package for @bernierllc/nevar-audit-logger","directories":{},"_nodeVersion":"25.8.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/nevar-audit-logger_0.0.1_1774655894334_0.34375468011326804","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@bernierllc/nevar-audit-logger","version":"0.1.0","keywords":["nevar","rules-engine","audit","logger","execution-log"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-audit-logger@0.1.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"6003eefbca378995b5b871b6d5ed8e2756e1fba3","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.1.0.tgz","fileCount":9,"integrity":"sha512-E/CKNF8qrR6OjIcQ2KEkSzhbBb/v5PoBkPGcZcprhvFfKHUBws8f34TiLYKab/b9x+P8EW0+DQBEB+/rq1EU2w==","signatures":[{"sig":"MEQCIFD+oKFPH18nc+TAyW8ZPRf8lYGMgmFi8Jl22OZ7P7W7AiAZ9ZGS5PEPjDmf61hLQEYXSuOKXltke4UbGLirVon0bA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13382},"main":"dist/index.js","_from":"file:bernierllc-nevar-audit-logger-0.1.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0416f84f-0f36-4ba7-ad64-2529cdf851ac"}},"_resolved":"/home/runner/work/tools/tools/packages/service/nevar-audit-logger/bernierllc-nevar-audit-logger-0.1.0.tgz","_integrity":"sha512-E/CKNF8qrR6OjIcQ2KEkSzhbBb/v5PoBkPGcZcprhvFfKHUBws8f34TiLYKab/b9x+P8EW0+DQBEB+/rq1EU2w==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"_npmVersion":"11.12.1","description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.1","dependencies":{"@bernierllc/nevar-types":"0.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-audit-logger_0.1.0_1774898829092_0.9476769257883595","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bernierllc/nevar-audit-logger","version":"0.2.0","keywords":["nevar","rules-engine","audit","logger","execution-log"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-audit-logger@0.2.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"fa0534edf1f0be19026d60084f79fa7a09b68a11","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.2.0.tgz","fileCount":9,"integrity":"sha512-2Tr8gitTe9/2LOXroJhlyH75YXngsDJ+yn414yHlW0PsMxiByIeNI3IQKngAAXpqpxJz6zC8D26Lp/CO00TCFQ==","signatures":[{"sig":"MEUCIHZYXLNaFcX/eHNLfKqFLAbpl0LYtdMVip1jBWKsyHfXAiEA4BY18y150IW+EQ3iISecwlCfUffioZGGsFkhSKX4v+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13382},"main":"dist/index.js","_from":"file:bernierllc-nevar-audit-logger-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0416f84f-0f36-4ba7-ad64-2529cdf851ac"}},"_resolved":"/home/runner/work/tools/tools/packages/service/nevar-audit-logger/bernierllc-nevar-audit-logger-0.2.0.tgz","_integrity":"sha512-2Tr8gitTe9/2LOXroJhlyH75YXngsDJ+yn414yHlW0PsMxiByIeNI3IQKngAAXpqpxJz6zC8D26Lp/CO00TCFQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"_npmVersion":"11.14.1","description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/nevar-types":"0.2.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-audit-logger_0.2.0_1779133861993_0.034831920883052314","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@bernierllc/nevar-audit-logger","version":"0.3.0","keywords":["nevar","rules-engine","audit","logger","execution-log"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-audit-logger@0.3.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"7dd026f34149f81b5c799b745d212191b5f1e637","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.3.0.tgz","fileCount":9,"integrity":"sha512-xv6wsF4bwLcqqXb19iuRZhBFVEKAVn0s4F7zF9gxFf2DKnw6ioEzUWK5BHA1AqWxzR0BoffGPWjReS7+iXZ8jg==","signatures":[{"sig":"MEUCIDKPllSm5ovU+vJFiaNfm/jS4ucPMdj7c/jHm1Eghan8AiEA6JRDFtiwo00OShMtSO8/orEMS8F2PEvM8RBAd+GoQUs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13382},"main":"dist/index.js","_from":"file:bernierllc-nevar-audit-logger-0.3.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0416f84f-0f36-4ba7-ad64-2529cdf851ac"}},"_resolved":"/home/runner/work/tools/tools/packages/service/nevar-audit-logger/bernierllc-nevar-audit-logger-0.3.0.tgz","_integrity":"sha512-xv6wsF4bwLcqqXb19iuRZhBFVEKAVn0s4F7zF9gxFf2DKnw6ioEzUWK5BHA1AqWxzR0BoffGPWjReS7+iXZ8jg==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"_npmVersion":"11.14.1","description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/nevar-types":"0.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-audit-logger_0.3.0_1779241768187_0.7340464888020592","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bernierllc/nevar-audit-logger","version":"0.5.0","keywords":["nevar","rules-engine","audit","logger","execution-log"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-audit-logger@0.5.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"1cf76716ff0501be85cfeda1bf5cfaae92790f31","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.5.0.tgz","fileCount":11,"integrity":"sha512-vIVfX6UixdUp6EMvUX61lCv0QG7IWj72bN9ILL36qNMciwDTtcVtobF8VVyHeiBIMti65XwmKpvr5rvaagwLQQ==","signatures":[{"sig":"MEUCIQDvF+wPjgQSKRYR8A3HJXLOhgxji4OuNrp3XTeXDUtp7AIgC8+lZUW3DBfHIg1zKbMVnXJAF/YZjUDHSzupHDXmL6A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15147},"main":"dist/index.js","_from":"file:bernierllc-nevar-audit-logger-0.5.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0416f84f-0f36-4ba7-ad64-2529cdf851ac"}},"_resolved":"/home/runner/work/tools/tools/packages/service/nevar-audit-logger/bernierllc-nevar-audit-logger-0.5.0.tgz","_integrity":"sha512-vIVfX6UixdUp6EMvUX61lCv0QG7IWj72bN9ILL36qNMciwDTtcVtobF8VVyHeiBIMti65XwmKpvr5rvaagwLQQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"_npmVersion":"11.14.1","description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/nevar-types":"0.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-audit-logger_0.5.0_1779247279981_0.7285715312134662","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@bernierllc/nevar-audit-logger","version":"0.6.0","keywords":["nevar","rules-engine","audit","logger","execution-log"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-audit-logger@0.6.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"4dcb45bd75b65ffd8f5cbd5f9c70aa2a269e9a3b","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.6.0.tgz","fileCount":11,"integrity":"sha512-8VcIFztV8i9ZcJvB8CFhkUM6fH/H+a5A6ATObjXQOG864L+m02GxH895/PhhxyVu0U3o3m5sWkpnHUicWLORuQ==","signatures":[{"sig":"MEQCIG5+GahxtkFXlaravxK2WoYeky/o5SmMoLnkNFi52iWEAiBKnfOqsg9Dr9D+RQECtLxDwFKcR+QEDQSM4M6OyQKFjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15147},"main":"dist/index.js","_from":"file:bernierllc-nevar-audit-logger-0.6.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0416f84f-0f36-4ba7-ad64-2529cdf851ac"}},"_resolved":"/home/runner/work/tools/tools/packages/service/nevar-audit-logger/bernierllc-nevar-audit-logger-0.6.0.tgz","_integrity":"sha512-8VcIFztV8i9ZcJvB8CFhkUM6fH/H+a5A6ATObjXQOG864L+m02GxH895/PhhxyVu0U3o3m5sWkpnHUicWLORuQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"_npmVersion":"11.14.1","description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/nevar-types":"0.4.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-audit-logger_0.6.0_1779250515464_0.114659105512803","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"_id":"@bernierllc/nevar-audit-logger@0.6.1","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"9f45757c7f3ae226656b7bbaadc7058be9eb63d3","tarball":"https://registry.npmjs.org/@bernierllc/nevar-audit-logger/-/nevar-audit-logger-0.6.1.tgz","fileCount":11,"integrity":"sha512-gdJLTRdc+t5XOBqkmZup8tzSomk9hrms2s2Vb4nA0t+avEmkjSRzmN4IJ8GhzteArs4MJ2bH3jtohBCtjFnTbg==","signatures":[{"sig":"MEUCIQCse7AXGXcieDEY5zGbEZL6ztadQ+PxzZspXH7nHfeLMgIgR7/BriS3adXFRXPeglinFka1ABNxJUyfjIqC5uP172E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAR63y7l23YkziaALM1OUoYrIjCjQ5EUoOEuLXrBK091AiEA/SXDXPtfD8WYoh2jryp3rNd5Tb+GCGUtjz3LvMLSQ+s="}],"unpackedSize":15148},"main":"dist/index.js","name":"@bernierllc/nevar-audit-logger","_from":"file:bernierllc-nevar-audit-logger-0.6.1.tgz","types":"dist/index.d.ts","author":{"name":"Bernier LLC"},"engines":{"node":">=16.0.0"},"license":"SEE LICENSE IN LICENSE","scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"version":"0.6.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0416f84f-0f36-4ba7-ad64-2529cdf851ac"}},"homepage":"https://github.com/bernierllc/tools#readme","keywords":["nevar","rules-engine","audit","logger","execution-log"],"_resolved":"/home/runner/work/tools/tools/packages/service/nevar-audit-logger/bernierllc-nevar-audit-logger-0.6.1.tgz","_integrity":"sha512-gdJLTRdc+t5XOBqkmZup8tzSomk9hrms2s2Vb4nA0t+avEmkjSRzmN4IJ8GhzteArs4MJ2bH3jtohBCtjFnTbg==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"_npmVersion":"12.2.0","description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","directories":{},"maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"_nodeVersion":"24.21.0","dependencies":{"@bernierllc/nevar-types":"^0.4.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nevar-audit-logger_0.6.1_1790884496013_0.8319887933450756"}}},"time":{"created":"2026-03-27T23:58:14.264Z","modified":"2026-10-01T19:54:56.283Z","0.0.1":"2026-03-27T23:58:14.475Z","0.1.0":"2026-03-30T19:27:09.246Z","0.2.0":"2026-05-18T19:51:02.130Z","0.3.0":"2026-05-20T01:49:28.334Z","0.5.0":"2026-05-20T03:21:20.128Z","0.6.0":"2026-05-20T04:15:15.633Z","0.6.1":"2026-10-01T19:54:56.094Z"},"bugs":{"url":"https://github.com/bernierllc/tools/issues"},"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/bernierllc/tools#readme","keywords":["nevar","rules-engine","audit","logger","execution-log"],"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/service/nevar-audit-logger"},"description":"Structured execution logging with granular per-rule/trigger/action log levels for the Nevar rules engine","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"readme":"# @bernierllc/nevar-audit-logger\n\nStructured execution audit logger for the Nevar rules engine with granular per-rule, per-trigger, and per-action log level control.\n\n## Installation\n\n```bash\nnpm install @bernierllc/nevar-audit-logger\n```\n\n## Usage\n\n```typescript\nimport { AuditLogger } from '@bernierllc/nevar-audit-logger';\nimport { InMemoryStorageAdapter } from '@bernierllc/nevar-storage';\n\nconst storage = new InMemoryStorageAdapter();\n\nconst logger = new AuditLogger(storage, {\n  defaultLevel: 'all',\n  overrides: {\n    byRule: { 'rule-123': 'errors_only' },\n    byTrigger: { 'user.created': 'matches_only' },\n    byAction: { 'send-email': 'all' },\n  },\n});\n\n// Log an execution entry (filtered by resolved log level)\nawait logger.log({\n  triggerKey: 'user.created',\n  ruleId: 'rule-456',\n  status: 'matched',\n  timestamp: new Date(),\n  payload: { email: 'user@example.com' },\n});\n\n// Update configuration at runtime\nlogger.updateConfig({ defaultLevel: 'errors_only' });\n```\n\n### LogLevelResolver\n\nUse `LogLevelResolver` directly when you need to resolve log levels without writing to storage:\n\n```typescript\nimport { LogLevelResolver } from '@bernierllc/nevar-audit-logger';\n\nconst resolver = new LogLevelResolver({\n  defaultLevel: 'all',\n  overrides: { byTrigger: { 'order.placed': 'errors_only' } },\n});\n\nconst level = resolver.resolve({ triggerKey: 'order.placed' });\nconst shouldWrite = resolver.shouldLog(level, 'error'); // true\n```\n\n## API\n\n### `AuditLogger`\n\nStructured execution logger that writes log entries through a `StorageWriter`, filtering based on resolved log levels.\n\n- `constructor(storage: StorageWriter, config?: Partial<AuditLoggerConfig>)` - Create a logger with a storage writer and optional config\n- `log(entry: ExecutionLogEntry): Promise<void>` - Log an entry if the resolved level permits it\n- `updateConfig(config: Partial<AuditLoggerConfig>): void` - Update log level configuration at runtime\n\n### `LogLevelResolver`\n\nResolves the effective log level using a fallback chain: byRule -> byTrigger -> byAction -> defaultLevel.\n\n- `constructor(config: AuditLoggerConfig)` - Create a resolver with config\n- `resolve(context: ResolveContext): LogLevel` - Resolve the effective log level for a context\n- `shouldLog(level: LogLevel, status: string): boolean` - Determine if an entry should be logged at the given level\n- `updateConfig(config: AuditLoggerConfig): void` - Update configuration\n\n### `StorageWriter` (interface)\n\nMinimal interface for writing log entries. Matches the `writeLog` method from `NevarStorageAdapter`.\n\n- `writeLog(entry: ExecutionLogEntry): Promise<void>`\n\n### `ResolveContext` (type)\n\nContext used for log level resolution: `{ ruleId?: string; triggerKey?: string; actionType?: string }`.\n\n## Integration Documentation\n\n### Logger Integration\n\nThis package is itself the logging layer for the Nevar rules engine. It integrates with `@bernierllc/logger` indirectly through the storage adapter that persists log entries. Service packages that consume `nevar-audit-logger` should use `@bernierllc/logger` for their own structured application logging alongside the audit trail this package provides.\n\n### NeverHub Integration\n\nThis package supports optional integration with `@bernierllc/neverhub-adapter`. When NeverHub is available, the audit logger can be registered for discovery and monitoring, enabling centralized visibility into log level configurations and audit throughput. Graceful degradation is supported when NeverHub is not present.\n\n## License\n\nCopyright (c) 2025 Bernier LLC. All rights reserved.\n","readmeFilename":"README.md"}