Skip to content

sink到文件中,没有自动创建目录 #686

@GreatLazyMan

Description

@GreatLazyMan

In what area(s)?

/area sink

What version of Loggie?

1.5.0

Expected Behavior

参考官方文档创建sink如下
sink:
type: file
workerCount: 1024
baseDirs:
- /data0
dirHashKey: ${namespace}-${nodename}
filename: /${nodename}/${podame}.log
maxSize: 500
maxAge: 7
maxBackups: 50
compress: true
希望能把日志写入到路径 /data0/${nodename}/${podame}.log

Actual Behavior

实际上日志写入到文件 /data0/${podame}.log ,没有创建目录 ${nodename}

Steps to Reproduce the Problem

创建file sink,filename包含多级子目录

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions