Revision adfa4645 trunk/Pithos.Client.WPF/Configuration/PithosSettings.cs
b/trunk/Pithos.Client.WPF/Configuration/PithosSettings.cs | ||
---|---|---|
262 | 262 |
.FirstOrDefault(a => a.Name == "DebugFileAppender"); |
263 | 263 |
if (debugAppender != null) |
264 | 264 |
{ |
265 |
var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); |
|
266 |
var pithosDataPath = Path.Combine(appDataPath, "GRNET"); |
|
265 |
var pithosDataPath = PithosDataPath; |
|
267 | 266 |
debugAppender.File = Path.Combine(pithosDataPath, "debuglog.xml"); |
268 | 267 |
debugAppender.Threshold = !Settings.Default.DebugLoggingEnabled ? Level.Off : Level.All; |
269 | 268 |
debugAppender.ActivateOptions(); |
270 | 269 |
} |
271 | 270 |
} |
272 | 271 |
|
272 |
public static string PithosDataPath |
|
273 |
{ |
|
274 |
get |
|
275 |
{ |
|
276 |
var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); |
|
277 |
var pithosDataPath = Path.Combine(appDataPath, "GRNET\\PITHOS"); |
|
278 |
return pithosDataPath; |
|
279 |
} |
|
280 |
} |
|
281 |
|
|
273 | 282 |
public void Save() |
274 | 283 |
{ |
275 | 284 |
_settings.Save(); |
Also available in: Unified diff