// Configure everything required when using files to log

Configure everything required when using files to log
// Configure everything required when using files to log
func configureLoggingFiles() {
	if initialized {
		return
	}
	path := "." + string(filepath.Separator) + serverLogsFolder
	if _, err := os.Stat(path); os.IsNotExist(err) {
		os.Mkdir(path, 0755)
	}
	c := cron.New()
	c.AddFunc("* * * * *", func() {
		filepath.Walk("."+string(filepath.Separator)+serverLogsFolder, deletefiles)
	})
	c.Start()
	initialized = true
}
func configureLoggingFiles ( ) { if initialized { return } path := " " + string ( filepath . Separator ) + serverLogsFolder if _ , err := os . Stat ( path ) ; os . IsNotExist ( err ) { os . Mkdir ( path , 0755 ) } c := cron . New ( ) c . AddFunc ( " " , func ( ) { filepath . Walk ( " " + string ( filepath . Separator ) + serverLogsFolder , deletefiles ) } ) c . Start ( ) initialized = true }
Configure everything required when using files to log
Configure everything required when using files to log