Click here to Skip to main content
       

C#

 
AnswerRe: Int32rect not found PinmvpFlorian Rappl12-Jan-13 0:46 
AnswerRe: Int32rect not found PinmvpRichard MacCutchan12-Jan-13 1:07 
GeneralRe: Int32rect not found Pinmemberz3ngew13-Jan-13 7:12 
QuestionProblem With User Controls [modified] PinmemberMah boubeh11-Jan-13 19:58 
AnswerRe: Problem With User Controls PinmvpDave Kreskowiak11-Jan-13 20:00 
GeneralRe: Problem With User Controls PinmemberMah boubeh11-Jan-13 20:09 
AnswerRe: Problem With User Controls PinmvpOriginalGriff11-Jan-13 23:13 
Questionsingle log file for two classes. Pinmembervanikanc11-Jan-13 11:27 
Hi,
 
I am new to the OOP in asp.net.
 
I have created a console application, within which I call another class, let us call it class A.
 
I want to logging of events going on in the application.
 
I am using the app.config, the define the log file path. and using simple System.IO.File.WriteAll to write to this file.
 
But for some reason, the log captures only the statements written in the main part of the app and not what was logged in class A. I am writing to the same log file.
 

How can I make it so the log file keeps appending??
 
Much appreciated!!
AnswerRe: single log file for two classes. Pinmembermark merrens11-Jan-13 11:58 
GeneralRe: single log file for two classes. PinmemberGarth J Lancaster11-Jan-13 13:56 
GeneralRe: single log file for two classes. Pinmembervanikanc14-Jan-13 4:00 
AnswerRe: single log file for two classes. PinmemberPIEBALDconsult11-Jan-13 14:26 
GeneralRe: single log file for two classes. Pinmembervanikanc15-Jan-13 3:24 
GeneralRe: single log file for two classes. PinmemberPIEBALDconsult15-Jan-13 4:08 
QuestionBinary File Library Pinmemberdxtrx11-Jan-13 11:24 
AnswerRe: Binary File Library PinmemberGarth J Lancaster11-Jan-13 12:18 
GeneralRe: Binary File Library Pinmemberdxtrx11-Jan-13 12:41 
GeneralRe: Binary File Library PinmemberGarth J Lancaster11-Jan-13 13:43 
GeneralRe: Binary File Library Pinmemberdxtrx11-Jan-13 13:47 
QuestionLatency In Button Click When Using MVVM PinmemberTee12311-Jan-13 8:25 
AnswerRe: Latency In Button Click When Using MVVM PinmemberSledgeHammer0111-Jan-13 10:38 
GeneralRe: Latency In Button Click When Using MVVM PinmemberTee12311-Jan-13 11:14 
QuestionC# computer name rename PinmemberEvetsMostel11-Jan-13 8:00 
AnswerRe: C# computer name rename Pinmemberjibesh11-Jan-13 8:47 
GeneralRe: C# computer name rename [modified] PinmemberEvetsMostel11-Jan-13 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 19 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid