public bool IsValidLogFileName2(string fileName) { int len = Path.GetFileNameWithoutExtension(fileName).Length; return IsSupportedExtension(fileName) && len>5; }