Add info() method to Logger/LoggerService
See original GitHub issueFeature Request
Is your feature request related to a problem? Please describe.
Many loggers have an info()
method and having it in the default Logger/LoggerService allows easily switching between different kinds of loggers.
Describe the solution you’d like
Add an info()
method to LoggerService and Logger.
Teachability, Documentation, Adoption, Migration Strategy
–
What is the motivation / use case for changing the behavior?
Allow using different kinds of loggers with the same interface. info()
is also a more descriptive name than log()
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Logger - Lambda Powertools Python - Open Source at AWS
Logging level, Sets how verbose Logger should be (INFO, ... across all future log messages via structure_logs method; Add additional keys on ...
Read more >pandas.DataFrame.info — pandas 1.5.2 documentation
This method prints information about a DataFrame including the index dtype and columns, non-null values and memory usage. Parameters. verbosebool, optional.
Read more >ialopezg/logger: Logger Service for PHP - GitHub
Method Details. Method: log(). /** * Log a message into the default log system. If the log system does not exists, will create...
Read more >Python | Pandas dataframe.info() - GeeksforGeeks
Pandas dataframe.info() function is used to get a concise summary of the dataframe. It comes really handy when doing exploratory analysis of ...
Read more >4 Ways to Add a Column in Pandas - Built In
Pandas DataFrame presents data in tabular rows and columns. Adding new columns is an important task in data analysis. Here's how to do...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To me, having the same method with 2 different names sounds confusing and redundant. When you code and the auto complete suggests you both log and info, first you get confused, and then you just pick one cause you don’t see the difference, and with time and multiple developers, the logging becomes inconsistent.
Sounds like all the more reason to add an
info
method! 😄