
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
debuglog: zero-conf debug.log file for simple and hassle-free debugging
= SYNOPSIS
Debuglog gives you debug, trace and time methods that write their output to the file ./debug.log.
require 'debuglog' # or require 'debuglog/auto'
debug "Creating #{n} connections"
trace "names.first", binding
time('Process config file') { Subsystem.configure(ARGV.shift) }
The log file (default ./debug.log) will look something like this:
DebugLog -- 2011-12-28 18:58:22 +1000
-------------------------------------
[00.3] Creating 14 connections
[00.8] names.first == "Sandy White"
[01.9] Process config file: 1.0831 sec
The [00.3] etc. is the number of seconds (rounded) since the program started (well, since require 'debuglog', anyway).
You can use different method names (to avoid a clash) and a different filename with some initial configuration.
require 'debuglog/manual'
DebugLog.configure(
:debug => :my_debug,
:trace => :my_trace,
:time => :my_time,
:filename => 'log/xyz.log'
)
my_debug "Creating #{n} connections"
my_trace "names.first", binding
my_time('Process config file') { Subsystem.configure(ARGV.shift) }
= HOMEPAGE
See http://gsinclair.github.com/debuglog.html for full details.
MIT Licence
FAQs
Unknown package
We found that debuglog 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.