[GH-ISSUE #3178] log_file on windows : backslash issue #2548

Closed
opened 2026-05-05 13:38:27 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @shabakett on GitHub (Nov 21, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3178

Bug Description

log_file = D:\log.txt shows logs.BeeLogger.SetLogger: invalid character 'l' in string escape code
log_file = D:/log.txt works well

frpc Version

0.45.0

frps Version

0.45.0

System Architecture

windows/amd64

Originally created by @shabakett on GitHub (Nov 21, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3178 ### Bug Description `log_file = D:\log.txt` shows `logs.BeeLogger.SetLogger: invalid character 'l' in string escape code` `log_file = D:/log.txt` works well ### frpc Version 0.45.0 ### frps Version 0.45.0 ### System Architecture windows/amd64
gitea-mirror 2026-05-05 13:38:27 -06:00
Author
Owner

@Becods commented on GitHub (Nov 21, 2022):

\ is an escape character.

Please replace it with /.

<!-- gh-comment-id:1321792117 --> @Becods commented on GitHub (Nov 21, 2022): `\` is an escape character. Please replace it with `/`.
Author
Owner

@shabakett commented on GitHub (Nov 21, 2022):

but \ in windows is the path separator also and it is easier to copy a path then paste it in frpc.ini

<!-- gh-comment-id:1321820881 --> @shabakett commented on GitHub (Nov 21, 2022): but `\` in windows is the path separator also and it is easier to copy a path then paste it in frpc.ini
Author
Owner

@github-actions[bot] commented on GitHub (Dec 23, 2022):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1363469858 --> @github-actions[bot] commented on GitHub (Dec 23, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2548
No description provided.