Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to display a string on website through windows form Pin
Abhishek Sur30-Sep-09 12:06
professionalAbhishek Sur30-Sep-09 12:06 
AnswerRe: how to display a string on website through windows form Pin
Tamer Oz30-Sep-09 19:23
Tamer Oz30-Sep-09 19:23 
GeneralRe: how to display a string on website through windows form Pin
Barkha Shreri1-Oct-09 1:38
Barkha Shreri1-Oct-09 1:38 
GeneralRe: how to display a string on website through windows form Pin
Barkha Shreri1-Oct-09 3:15
Barkha Shreri1-Oct-09 3:15 
QuestionC#: Need help deleting new button instances that i've create in my program! Please Help! Pin
jyjt_code30-Sep-09 10:14
jyjt_code30-Sep-09 10:14 
AnswerRe: C#: Need help deleting new button instances that i've create in my program! Please Help! Pin
Christian Graus30-Sep-09 11:13
protectorChristian Graus30-Sep-09 11:13 
GeneralRe: C#: Need help deleting new button instances that i've create in my program! Please Help! Pin
jyjt_code30-Sep-09 16:35
jyjt_code30-Sep-09 16:35 
GeneralRe: C#: Need help deleting new button instances that i've create in my program! Please Help! Pin
Christian Graus30-Sep-09 16:39
protectorChristian Graus30-Sep-09 16:39 
QuestionButton navigate Pin
Texas38930-Sep-09 9:10
Texas38930-Sep-09 9:10 
AnswerRe: Button navigate [modified] Pin
Ian Shlasko30-Sep-09 9:23
Ian Shlasko30-Sep-09 9:23 
GeneralRe: Button navigate Pin
Texas38930-Sep-09 11:10
Texas38930-Sep-09 11:10 
QuestionProblem executing a named pipe service Pin
AndyASPVB30-Sep-09 8:55
AndyASPVB30-Sep-09 8:55 
AnswerRe: Problem executing a named pipe service Pin
Ian Shlasko30-Sep-09 9:26
Ian Shlasko30-Sep-09 9:26 
GeneralRe: Problem executing a named pipe service Pin
AndyASPVB30-Sep-09 9:51
AndyASPVB30-Sep-09 9:51 
GeneralRe: Problem executing a named pipe service Pin
saber.softs30-Sep-09 11:02
saber.softs30-Sep-09 11:02 
GeneralRe: Problem executing a named pipe service Pin
AndyASPVB1-Oct-09 10:43
AndyASPVB1-Oct-09 10:43 
QuestionLoadLibrary gets stuck when calling it from a thread that is not the main thread Pin
Alexeirob30-Sep-09 7:50
Alexeirob30-Sep-09 7:50 
QuestionMultiple log4net files. Pin
Albu Marius30-Sep-09 5:00
Albu Marius30-Sep-09 5:00 
I have a problem regarding multiple log files. In my project i have a GeneralLog (singleton instance) that is configured from the app.config of the application.
<log4net>
		<!-- The DebugFileAppender writes all messages to a log file-->
		<appender name="GeneralAppender" type="log4net.Appender.FileAppender">
			<!-->the file where to write the events<-->
			<file value="GeneralLog.dat" />
			<!-->the lowest level a message must reach in order to get written in the log file<-->
			<threshold value="WARN" />
			<!-->a value indicating that every message is appended to the log file<-->
			<appendToFile value="true" />
			<maximumFileSize value="100KB"/>
			<rollingStyle value="Size"/>
			<!-->the message layout<-->
			<layout type="log4net.Layout.PatternLayout">
				<param name="ConversionPattern" value="[%d] - %m%n" />
			</layout>
		</appender>
		<root>
			<!-- add other appenders here and the log messages will be sent to every listed appender -->
			<appender-ref ref="GeneralAppender" />
		</root>
	</log4net>

This works. During the execution I create alot more (dynamically) log files from appenders defined like this:
FileAppender generalLogAppender = new FileAppender();
//Initialize the properties of the appender
generalLogAppender.Name = generalLogFileName;
generalLogAppender.File = "Log+"+ fileName + ".dat";
generalLogAppender.AppendToFile = true;
generalLogAppender.Threshold = Level.Warn;
PatternLayout layout2 = new PatternLayout();
layout2.ConversionPattern = "[%d] - %m%n";
layout2.ActivateOptions();
generalLogAppender.ActivateOptions();
BasicConfigurator.Configure(generalLogAppender);

The files are created, but nothing is written in them, only in the GeneralLog. I am really confused by this. I checked the net and of course CodeProject and found only static examples of logs, never a mixed case.

I am fighting against the Universe...
Reference-Rick Cook

AnswerRe: Multiple log4net files. Pin
Albu Marius1-Oct-09 0:28
Albu Marius1-Oct-09 0:28 
QuestionThe underlying provider failed on Open Pin
abbd30-Sep-09 4:23
abbd30-Sep-09 4:23 
AnswerRe: The underlying provider failed on Open Pin
Matt Meyer30-Sep-09 5:26
Matt Meyer30-Sep-09 5:26 
QuestionRe: The underlying provider failed on Open Pin
abbd30-Sep-09 6:20
abbd30-Sep-09 6:20 
AnswerRe: The underlying provider failed on Open Pin
Not Active30-Sep-09 6:42
mentorNot Active30-Sep-09 6:42 
AnswerRe: The underlying provider failed on Open Pin
Max Paulousky24-Oct-09 11:10
Max Paulousky24-Oct-09 11:10 
QuestionPDF is not shown in Windows Form Pin
Abdul Rahman Hamidy30-Sep-09 4:13
Abdul Rahman Hamidy30-Sep-09 4:13 

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

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