[GH-ISSUE #3741] windows 启动log报异常 #2974

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

Originally created by @wuai1024 on GitHub (Nov 2, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3741

Bug Description

log:
  to: "D:\\frp\\logs\\frpc.log"
logs.BeeLogger.SetLogger: invalid character 'l' in string escape code

frpc Version

v0.52.3

frps Version

v0.52.3

System Architecture

windows/amd64

Configurations

如题,必须去掉,to 才可以启动

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @wuai1024 on GitHub (Nov 2, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3741 ### Bug Description ``` yaml log: to: "D:\\frp\\logs\\frpc.log" ``` ``` shell logs.BeeLogger.SetLogger: invalid character 'l' in string escape code ``` ### frpc Version v0.52.3 ### frps Version v0.52.3 ### System Architecture windows/amd64 ### Configurations 如题,必须去掉,to 才可以启动 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@wuai1024 commented on GitHub (Nov 2, 2023):

另外控制台显示也有一点问题。

客户端日志:

2023/11/02 22:53:07 [I] [root.go:139] start frpc service for config file [frpc.yaml]
2023/11/02 22:53:07 [I] [service.go:299] [0da462d3a3c7e558] login to server success, get run id [0da462d3a3c7e558]
2023/11/02 22:53:07 [I] [proxy_manager.go:156] [0da462d3a3c7e558] proxy added: [1125.web 1125.remote-tcp 1125.remote-udp]
2023/11/02 22:53:07 [I] [control.go:173] [0da462d3a3c7e558] [1125.web] start proxy success
2023/11/02 22:53:07 [I] [control.go:173] [0da462d3a3c7e558] [1125.remote-tcp] start proxy success
2023/11/02 22:53:07 [I] [control.go:173] [0da462d3a3c7e558] [1125.remote-udp] start proxy success
2023/11/02 22:53:08 [I] [udp.go:91] [0da462d3a3c7e558] [1125.remote-udp] incoming a new work connection for udp proxy

服务端控制台显示:
image

<!-- gh-comment-id:1790899792 --> @wuai1024 commented on GitHub (Nov 2, 2023): 另外控制台显示也有一点问题。 客户端日志: ``` shell 2023/11/02 22:53:07 [I] [root.go:139] start frpc service for config file [frpc.yaml] 2023/11/02 22:53:07 [I] [service.go:299] [0da462d3a3c7e558] login to server success, get run id [0da462d3a3c7e558] 2023/11/02 22:53:07 [I] [proxy_manager.go:156] [0da462d3a3c7e558] proxy added: [1125.web 1125.remote-tcp 1125.remote-udp] 2023/11/02 22:53:07 [I] [control.go:173] [0da462d3a3c7e558] [1125.web] start proxy success 2023/11/02 22:53:07 [I] [control.go:173] [0da462d3a3c7e558] [1125.remote-tcp] start proxy success 2023/11/02 22:53:07 [I] [control.go:173] [0da462d3a3c7e558] [1125.remote-udp] start proxy success 2023/11/02 22:53:08 [I] [udp.go:91] [0da462d3a3c7e558] [1125.remote-udp] incoming a new work connection for udp proxy ``` 服务端控制台显示: ![image](https://github.com/fatedier/frp/assets/13379708/67b393d8-7c65-4935-8455-f020adfe2ae6)
Author
Owner

@superzjg commented on GitHub (Nov 3, 2023):

问题一:路径改成这样:to: "D:/frp/logs/frpc.log",为何不能用\原因不明
问题二:没看明白

<!-- gh-comment-id:1791758741 --> @superzjg commented on GitHub (Nov 3, 2023): 问题一:路径改成这样:`to: "D:/frp/logs/frpc.log"`,为何不能用\原因不明 问题二:没看明白
Author
Owner

@wuai1024 commented on GitHub (Nov 3, 2023):

问题一:路径改成这样:to: "D:/frp/logs/frpc.log",为何不能用\原因不明 问题二:没看明白

路径修改后好了,奇怪,以前都不能这样用的,新版的连这个分隔符都修改了

<!-- gh-comment-id:1791826971 --> @wuai1024 commented on GitHub (Nov 3, 2023): > 问题一:路径改成这样:`to: "D:/frp/logs/frpc.log"`,为何不能用\原因不明 问题二:没看明白 路径修改后好了,奇怪,以前都不能这样用的,新版的连这个分隔符都修改了
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#2974
No description provided.