logger icon indicating copy to clipboard operation
logger copied to clipboard

simple logging utility

Results 16 logger issues
Sort by recently updated
recently updated
newest added

This allows the user to specify exception classes to treat as regular exceptions instead of being swallowed. Among other things, it is useful for having Logger work with Timeout when...

Hello, thank you for maintaining this library ❤️ ! I'm opening this PR to propose a new feature: ### Context It's quite common to add extra info to each log...

The motivation here is to fix a Rails issue caused by the way ActiveSupport [extends the ruby Logger][1] to add broadcasting of messages to multiple destinations. I believe the problem...

If you create a file with user permissions but then run logger under root the file rotate will not preserve these permissions causing access issues. ```ruby % ls -al log.log...

Resolves issue: https://github.com/ruby/logger/issues/46

This addresses the issue I raised in #55 The code in this PR allows setting parameters applicable to a log file in `LogDevice#reopen` as well as during initialization. I only...

This code correctly sets `@shift_age` to `7` and `@shift_size` to `1048576` ```ruby Logger::LogDevice.new(@filename) ``` This code will end up with those instance variables set to nil ```ruby logger = Logger::LogDevice.new(STDERR)...

`Logger.new` fails if `shift_age` is a symbol. Error: ``` irb(main):003:0> Logger.new('a.log', :daily) ArgumentError (invalid :shift_age :daily, should be daily, weekly, monthly, or everytime) ``` Environment: ``` $ bundle list Gems...

Getting some errors with the logger gem when executing ``` logger = Logger.new($stdout) logger.info 'test' ``` ``` "errorMessage": "undefined method `[]' for nil:NilClass", "errorType": "Function", "stackTrace": [ "/var/task/vendor/bundle/ruby/3.2.0/gems/logger-1.6.0/lib/logger.rb:384:in `level'", "/var/task/vendor/bundle/ruby/3.2.0/gems/logger-1.6.0/lib/logger.rb:653:in...

I submitted a couple of PRs that solve the basic problems I have with the current level overrides: * #136 * #137 But I'd prefer to change it a bit...