
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
LiteLogger is a lightweight logging solution for Ruby applications, providing customizable log levels, formats, and destinations.
Add this line to your application's Gemfile:
gem 'lite_logger'
And then run:
bundle install
Or install it manually with:
gem install lite_logger
# Require the gem
require 'lite_logger'
class MyClass
def initialize
# Initialize the logger
@logger = LiteLogger::Logger.new
end
def run
@logger.debug('This is a debug message')
@logger.info('This is an info message')
@logger.warn('This is a warning message')
@logger.error('This is an error message')
@logger.fatal('This is a fatal message')
# [...]
end
end
require 'lite_logger'
@logger = LiteLogger::Logger.new
@logger.destination = './application.log'
@logger.info('Application started!')
Output:
2024-07-10 18:58:07 -0300 [INFO] Application started!
Bug reports and pull requests are welcome: https://github.com/dmferrari/lite_logger/pulls.
This little gem is available as open-source under the terms of the MIT License (see the LICENSE file in the project root for details).
FAQs
Unknown package
We found that lite_logger demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.