Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Log Format doesn't highlight log lines. #181

Open
MooshiMochi opened this issue Feb 23, 2024 · 0 comments
Open

Custom Log Format doesn't highlight log lines. #181

MooshiMochi opened this issue Feb 23, 2024 · 0 comments

Comments

@MooshiMochi
Copy link

I have added a custom log format on the Ultimate edition of PyCharm (version 2023.3.3), and the line highlighting isn't working.
I have tried the same configuration in the Community Edition (version 2022.3.2), and it worked without issues there.

It seems that my patterns are correct and should be working (the bar on the right highlights the respective lines correctly as seen in the screenshot provided)
image

This is my configuration for the customs log format:
Message Pattern: ^\[(\d+-\d+-\d+\s\d+:\d+:\d+)\]\s\[(\w+)\s+\]\s(.[^:]+):\s.*$
Message Start Pattern: ^\[
Time Format: Y-m-d HH:MM:SS
The respective capture groups are in order: 1, 2, 3. (see screenshot below)

image
image

Sample log file:

[2024-02-22 15:18:51] [DEBUG ] main: Testing debug logging
[2024-02-22 15:18:51] [INFO ] main: Testing info logging
[2024-02-22 15:18:51] [WARNING ] main: Testing warning logging
[2024-02-22 15:18:51] [ERROR ] main: Testing error logging
[2024-02-22 15:18:51] [CRITICAL] main: Testing critical logging
[2024-02-22 15:18:51] [INFO ] main: Starting bot...
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: websockets.client
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: aiosqlite
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: discord.gateway
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: discord.client
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: discord.http
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: discord.webhook.async_
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: discord.state
[2024-02-22 15:18:51] [WARNING ] main: Silenced debug logger: filelock
[2024-02-22 15:18:51] [INFO ] src.core.cache: Set default cache time to 3600
[2024-02-22 15:18:51] [INFO ] src.core.cache: Set default cache time to 3600
[2024-02-22 15:18:51] [INFO ] main: - Testing proxy http://[PROXY USER]:[PROXY PASSWORD]@p.webshare.io:80...
[2024-02-22 15:18:51] [INFO ] main: - Proxy is working...
[2024-02-22 15:18:51] [INFO ] main: Running custom initializer...
[2024-02-22 15:18:51] [INFO ] bot: Loaded Config Cog...
[2024-02-22 15:18:51] [INFO ] bot: Loaded TxtCommandErrorHandler Cog...
[2024-02-22 15:18:51] [INFO ] bot: Loaded Event Listener Cog...
[2024-02-22 15:18:51] [INFO ] bot: Loaded Commands Cog...
[2024-02-22 15:18:52] [INFO ] bot: Loaded Restricted Cog...
[2024-02-22 15:18:52] [INFO ] bot: Loaded Bookmarks Cog...
[2024-02-22 15:18:52] [INFO ] cache.bot: Initializing cache.bot...
[2024-02-22 15:18:52] [INFO ] cache.bot: cache.bot initialized with default cache time of 3600 seconds
[2024-02-22 15:18:52] [INFO ] cache.bot: Using proxy: http://[PROXY USER]:[PROXY PASSWORD]@p.webshare.io:80
[2024-02-22 15:18:52] [INFO ] cache.curl_cffi: Initializing cache.curl_cffi...
[2024-02-22 15:18:52] [INFO ] cache.curl_cffi: cache.curl_cffi initialized with default cache time of 3600 seconds
[2024-02-22 15:18:52] [INFO ] cache.apis: Initializing cache.apis...
[2024-02-22 15:18:52] [INFO ] cache.apis: cache.apis initialized with default cache time of 3600 seconds
[2024-02-22 15:18:52] [INFO ] cache.apis: Using proxy: http://[PROXY USER]:[PROXY PASSWORD]@p.webshare.io:80
[2024-02-22 15:18:52] [INFO ] bot: Testing WebShare wrapper...
[2024-02-22 15:18:52] [DEBUG ] cache.apis: Making request...
[2024-02-22 15:18:52] [DEBUG ] cache.apis: Cache miss for https://proxy.webshare.io/api/v2/proxy/list?per_page=1&page=1&mode=direct


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants