Skip to content

go客户端教程路由篇——小问题 #330

@yihao-bit

Description

@yihao-bit

log.Println()默认为标准错误输出;
想要把输出的内容重定向到日志文件中,应该把
go run receive_logs_direct.go warning error > logs_from_rabbit.log改成go run receive_logs_direct.go warning error 2> logs_from_rabbit.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions