<commit_before>import logging
import asyncio
import collections

from discord.ext import commands

from .common import Cog

log = logging.getLogger(__name__)


LOGGING_PERIOD = 5 

LEVELS = {
    logging.INFO: 326388782829928448,
    logging.WARNING: 326388923116945408,
    logging.ERROR: 326388923116945408,
}

LOGGERS_TO_ATTACH = [
    'discord',
    'ext',
    '__main__',
]

class ChannelHandler(logging.Handler):
    """Log handler for discord channels.
    
    This logging handler will setup logging so that your bot's logs go to a discord channel.

    Edit LEVELS to match your preferred channel IDs.

    This handler will only send logs from its internal queue every 5 seconds,<commit_msg>channel_logging: change ERROR log channel<commit_after>import logging
import asyncio
import collections

from discord.ext import commands

from .common import Cog

log = logging.getLogger(__name__)


LOGGING_PERIOD = 5 

LEVELS = {
    logging.INFO: 326388782829928448,
    logging.WARNING: 326388923116945408,
    logging.ERROR: 332260027916353538,
}

LOGGERS_TO_ATTACH = [
    'discord',
    'ext',
    '__main__',
]

class ChannelHandler(logging.Handler):
    """Log handler for discord channels.
    
    This logging handler will setup logging so that your bot's logs go to a discord channel.

    Edit LEVELS to match your preferred channel IDs.

    This handler will only send logs from its internal queue every 5 seconds,
{'fraction_non_alphanumeric': 0.06494413407821228, 'fraction_numerical': 0.0782122905027933, 'mean_word_length': 3.824915824915825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5249146', 'n_tokens_mistral': 518, 'n_tokens_neox': 427, 'n_words': 149}