Skip to content

feat: output log to file and update them periodically

Codecov / codecov/patch succeeded Dec 19, 2024 in 1s

46.39% of diff hit (target 2.73%)

View this Pull Request on Codecov

46.39% of diff hit (target 2.73%)

Annotations

Check warning on line 123 in config/config.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

config/config.go#L123

Added line #L123 was not covered by tests

Check warning on line 125 in config/config.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

config/config.go#L125

Added line #L125 was not covered by tests

Check warning on line 127 in config/config.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

config/config.go#L127

Added line #L127 was not covered by tests

Check warning on line 49 in pkg/base/client/db.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/base/client/db.go#L49

Added line #L49 was not covered by tests

Check warning on line 40 in pkg/eshook/logger.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/eshook/logger.go#L40

Added line #L40 was not covered by tests

Check warning on line 33 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L32-L33

Added lines #L32 - L33 were not covered by tests

Check warning on line 37 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L36-L37

Added lines #L36 - L37 were not covered by tests

Check warning on line 41 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L40-L41

Added lines #L40 - L41 were not covered by tests

Check warning on line 45 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L44-L45

Added lines #L44 - L45 were not covered by tests

Check warning on line 49 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L48-L49

Added lines #L48 - L49 were not covered by tests

Check warning on line 53 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L52-L53

Added lines #L52 - L53 were not covered by tests

Check warning on line 57 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L56-L57

Added lines #L56 - L57 were not covered by tests

Check warning on line 61 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L60-L61

Added lines #L60 - L61 were not covered by tests

Check warning on line 65 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L64-L65

Added lines #L64 - L65 were not covered by tests

Check warning on line 69 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L68-L69

Added lines #L68 - L69 were not covered by tests

Check warning on line 73 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L72-L73

Added lines #L72 - L73 were not covered by tests

Check warning on line 77 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L76-L77

Added lines #L76 - L77 were not covered by tests

Check warning on line 81 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L80-L81

Added lines #L80 - L81 were not covered by tests

Check warning on line 85 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L84-L85

Added lines #L84 - L85 were not covered by tests

Check warning on line 89 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L88-L89

Added lines #L88 - L89 were not covered by tests

Check warning on line 93 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L92-L93

Added lines #L92 - L93 were not covered by tests

Check warning on line 97 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L96-L97

Added lines #L96 - L97 were not covered by tests

Check warning on line 101 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L100-L101

Added lines #L100 - L101 were not covered by tests

Check warning on line 105 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L104-L105

Added lines #L104 - L105 were not covered by tests

Check warning on line 109 in pkg/logger/klog.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/logger/klog.go#L108-L109

Added lines #L108 - L109 were not covered by tests