
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
advanced-logger
Advanced tools
Advanced logger module extendable with plugins. Works in nodejs and browsers
It is an extendable isomorphic log sending library written in TypeScript for javascript application in nodejs and browsers.
It can be extended with custom strategy ("when to send logs") and service ("where to send logs").
It does not restrict you with conventions, for example, existence of "logSeverity", "ErrorId" or "message" fields in log.
It supports any format of logs via custom serializer.
Builds are generated as ES2015 bundles for nodejs and browser environments.
:robot: NodeJS - tested on latest lts
:globe_with_meridians: Browser - all latest browsers, that support ES2015 JS.
Complete documentation and examples can be found here:
Now, the boring part :nerd_face:
Axios is a required peer dependency. It means that axios is not bundled into logger package, but required to be installed.
As a dependency in a npm project:
npm i --save advanced-logger axios
import {AdvancedLogger, service, strategy} from 'advanced-logger';
// or
const {AdvancedLogger, service, strategy} = require('advanced-logger');
As script tags with CDN:
<!--minified-->
<script src="https://cdn.jsdelivr.net/npm/axios@latest/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/advanced-logger@latest/dist/browser/advanced-logger.browser.min.js"></script>
<!--dev version-->
<script src="https://cdn.jsdelivr.net/npm/axios@latest/dist/axios.js"></script>
<script src="https://cdn.jsdelivr.net/npm/advanced-logger@latest/dist/browser-debug/advanced-logger.browser.js"></script>
Lets initiate a logger that sends all logs instantly to Sumologic service.
import {AdvancedLogger, service, strategy} from 'advanced-logger';
const defaultLogConfig = {
UserAgent: window.userAgent,
Channel: "my-company",
BuildVersion: 123,
Platform: "browser",
Severity: "DEBUG",
Data: "",
Timestamp: "",
Message: "",
Category: ""
};
const serviceConfig = {
url: "https://www.google.nl",
sourceName: "advancedLoggerTest",
host: "advanced-logger",
sourceCategory: "MY/SUMO/namespace",
method: "POST"
};
const config = {serviceConfig, defaultLogConfig};
const logger = new AdvancedLogger({
service: new service.SumologicService(config),
strategy: new strategy.InstantStrategy()
});
logger.log({test: "instant log u1"}); // sends log message :rocket:
logger.log({test: "instant log u2"}); // sends log message :rocket:
logger.log({test: "instant log u3"}); // sends log message :rocket:
FAQs
Advanced logger module extendable with plugins. Works in nodejs and browsers
We found that advanced-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.