Skip to content

建议增加条件编译,在windows平台上,InitConcurrentLogWriter函数直接返回error #13

@if-nil

Description

@if-nil

如果短期内不打算兼容的话,这样修改是最简单的,例如下面:

//go:build windows
// +build windows

package consumers

import "errors"

func InitConcurrentLogWriter(fname string, hourRotate bool) (*ConcurrentLogWriter, error) {
    return nil, errors.New("ConcurrentLogWriter not supported on windows")
}

这样比直接编译不了好很多

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