
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@furystack/logging
Advanced tools
Logging package for FuryStack
You can start using the Logging service with an injector in the following way:
import { ConsoleLogger } from '@furystack/logging'
const myInjector = new Injector().useLogging(ConsoleLogger, Logger1, Logger2 /** ...your Logger implementations */)
You can retrieve the Logger instance with
const myLogger = myInjector.getLogger()
...or with a specific scope:
myInjector.getLogger().withScope('CustomScope')
You can log a simple event with
myLogger.addEntry({
level: 'verbose',
message: 'My log message',
scope: '@furystack/logging/test',
data: {
foo: 1,
bar: 42,
},
})
or
myLogger.verbose({
message: 'My log message',
scope: '@furystack/logging/test',
data: {
foo: 1,
bar: 42,
},
})
The two snippets do the same - they will add a log entry to each registered logger.
At the most of the cases, you use a logger in a service with a specific scope. You can create and use a scoped logger in the following way
const scopedLogger = myLogger.withScope('@furystack/logging/test')
scopedLogger.verbose({ message: 'FooBarBaz' })
You can implement your own logging logic in the similar way as this custom log collector
import { AbstractLogger, ILeveledLogEntry } from '@furystack/logging'
@Injectable({ lifetime: 'singleton' })
export class MyCustomLogCollector extends AbstractLogger {
private readonly entries: Array<ILeveledLogEntry<any>> = []
public getEntries() {
return [...this.entries]
}
public async addEntry<T>(entry: ILeveledLogEntry<T>): Promise<void> {
this.entries.push(entry)
}
constructor() {
super()
}
}
FAQs
Logging API for FuryStack package
The npm package @furystack/logging receives a total of 40 weekly downloads. As such, @furystack/logging popularity was classified as not popular.
We found that @furystack/logging demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.