class Cog:
    """ The Cog baseclass that all cogs should inherit from. """
    def __init__(self, bot):
        self.bot = bot

import logging


class Cog:
    """ The Cog baseclass that all cogs should inherit from. """
    def __init__(self, bot):
        self.bot = bot
        self.logger = logging.getLogger('cog.' + type(self).__name__.lower())

Add logger attribute in Cog baseclass
Add logger attribute in Cog baseclass

I don't feel like refactoring all of my cog code to use this attribute at the moment, so I'll just leave this here for now.

+ import logging
+ 
+ 
  class Cog:
      """ The Cog baseclass that all cogs should inherit from. """
      def __init__(self, bot):
          self.bot = bot
+         self.logger = logging.getLogger('cog.' + type(self).__name__.lower())
  
Add logger attribute in Cog baseclass
## Code Before:
class Cog:
    """ The Cog baseclass that all cogs should inherit from. """
    def __init__(self, bot):
        self.bot = bot

## Instruction:
Add logger attribute in Cog baseclass
## Code After:
import logging


class Cog:
    """ The Cog baseclass that all cogs should inherit from. """
    def __init__(self, bot):
        self.bot = bot
        self.logger = logging.getLogger('cog.' + type(self).__name__.lower())
