Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Stump is a minimal wrapper around the basic ruby logger
that provides
logging to a log file in addition to STDOUT - something which is for some reason
rather hard to do for rack-based applications not using Rails. It also provides
an access_log
which you can write to STDOUT and (if you wish) a log file.
Why call it Stump? It's like a small (tree) log, get it? Get it?
# Gemfile
gem 'stump'
# configuration file for your rack-based application
require 'stump'
logger = Stump::Logger.new
use Stump::AccessLog, logger
The following example demonstrates usage of stump
in a vanilla, minimal
sinatra
application. You can literally copy this code and run the example
in less than a minute.
# Gemfile
source 'https://rubygems.org'
gem 'sinatra'
gem 'stump'
# hi.rb
require 'sinatra'
require 'stump'
logger = Stump::Logger.new "tmp/log.log"
logger.level = Logger::DEBUG
use Stump::AccessLog, logger
get '/hi' do
logger.debug 'hello'
'What came first - the cat or the internet?'
end
Run bundle
and ruby hi.rb
, point your brower to localhost:4567/hi
and witness the magic.
"Hey, it's not working!"
This can totally happen, so just open up an issue and I'll get right on it!
Copyright (c) @nicovhi, released under the MIT License.
FAQs
Unknown package
We found that stump 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.