question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add info() method to Logger/LoggerService

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
gilzarfaticommented, Sep 27, 2020

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.

3reactions
mohd-akramcommented, Aug 17, 2020

Sounds like all the more reason to add an info method! 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found