mirror of
https://github.com/whyour/qinglong.git
synced 2026-10-01 05:13:50 +08:00
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
import { resolveFileAccess } from '../shared/fileAccess';
|
|
import { Inject, Service } from 'typedi';
|
|
import winston from 'winston';
|
|
import config from '../config';
|
|
|
|
@Service()
|
|
export default class LogService {
|
|
constructor(@Inject('logger') private logger: winston.Logger) {}
|
|
|
|
public checkFilePath(filePath: string, fileName: string) {
|
|
return resolveFileAccess(config.logPath, [filePath || '', fileName]);
|
|
}
|
|
}
|