Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use PictureBox Events in Datagrid ??? Pin
MarcelErz12-Dec-05 21:30
MarcelErz12-Dec-05 21:30 
GeneralRe: How to use PictureBox Events in Datagrid ??? Pin
Abubakarsb13-Dec-05 6:02
Abubakarsb13-Dec-05 6:02 
QuestionStoring text information in an image Pin
Maqsood Ahmed12-Dec-05 19:58
Maqsood Ahmed12-Dec-05 19:58 
AnswerRe: Storing text information in an image Pin
Vikram A Punathambekar12-Dec-05 21:46
Vikram A Punathambekar12-Dec-05 21:46 
AnswerRe: Storing text information in an image Pin
MarcelErz12-Dec-05 21:48
MarcelErz12-Dec-05 21:48 
GeneralRe: Storing text information in an image Pin
Maqsood Ahmed13-Dec-05 20:20
Maqsood Ahmed13-Dec-05 20:20 
GeneralRe: Storing text information in an image Pin
MarcelErz13-Dec-05 21:14
MarcelErz13-Dec-05 21:14 
Questionwhat is the problem in the following code of classlibrary Project for log4net Pin
YogeshChoudhary12-Dec-05 19:04
YogeshChoudhary12-Dec-05 19:04 
I am using fileappender in the config file

<?xml version="1.0" encoding="utf-8" ?>
<!-- This section contains the log4net configuration settings -->
<log4net>
<!-- Define some output appenders -->
<appender name="LogFileAppender" type="log4net.Appender.FileAppender,log4net" >

<param name="File" value="c:\\temp\\error-log.txt" />

<param name="AppendToFile" value="true" />

<layout type="log4net.Layout.PatternLayout,log4net">

<param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />

</layout>

</appender>

<!-- Setup the root category, add the appenders and set the default priority -->

<root>
<level value="All" />
<appender-ref ref="LogFileAppender" />
</root>

</log4net>
In class my code is

[assembly: log4net.Config.Domain("SimpleModule")]

// Configure logging for this assembly using the 'SimpleModule.dll.log4net' file
[assembly: log4net.Config.DOMConfigurator(ConfigFileExtension="log4net", Watch=true)]

namespace SimpleModule
{
/// <summary>
/// Summary description for Math.
/// </summary>
public class Math
{
// Create a logger for use in this class
//private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private static readonly log4net.ILog log = log4net.LogManager.GetLogger("LogFileAppender");

//public Math()
public static void Main()
{
//if (log.IsDebugEnabled)
log.Debug("Math Constructor");
System.Console.Write("Press Enter");
System.Console.ReadLine();
}

<b>But there are no loggers created in my log file. Can anyone of you please give me the solutions</b>

-- modified at 4:01 Tuesday 13th December, 2005
Questionextracting substring Pin
Ankit Aneja12-Dec-05 18:57
Ankit Aneja12-Dec-05 18:57 
AnswerRe: extracting substring Pin
HakunaMatada12-Dec-05 19:33
HakunaMatada12-Dec-05 19:33 
GeneralRe: extracting substring Pin
Ankit Aneja12-Dec-05 19:47
Ankit Aneja12-Dec-05 19:47 
GeneralRe: extracting substring Pin
HakunaMatada12-Dec-05 20:15
HakunaMatada12-Dec-05 20:15 
GeneralRe: extracting substring Pin
Ankit Aneja12-Dec-05 20:27
Ankit Aneja12-Dec-05 20:27 
AnswerRe: extracting substring Pin
Anbuselvan12-Dec-05 20:19
Anbuselvan12-Dec-05 20:19 
GeneralRe: extracting substring Pin
Ankit Aneja12-Dec-05 20:27
Ankit Aneja12-Dec-05 20:27 
GeneralRe: extracting substring Pin
HakunaMatada12-Dec-05 20:31
HakunaMatada12-Dec-05 20:31 
QuestionRegarding calling Events of Internet Explorer Pin
A.Grover12-Dec-05 18:50
A.Grover12-Dec-05 18:50 
QuestionWindows Service Question. Pin
HakunaMatada12-Dec-05 18:30
HakunaMatada12-Dec-05 18:30 
AnswerRe: Windows Service Question. Pin
Ray Cassick12-Dec-05 18:48
Ray Cassick12-Dec-05 18:48 
GeneralRe: Windows Service Question. Pin
HakunaMatada12-Dec-05 20:22
HakunaMatada12-Dec-05 20:22 
GeneralRe: Windows Service Question. Pin
Scott Serl13-Dec-05 7:00
Scott Serl13-Dec-05 7:00 
GeneralRe: Windows Service Question. Pin
HakunaMatada13-Dec-05 17:07
HakunaMatada13-Dec-05 17:07 
AnswerRe: Windows Service Question. Pin
Dave Kreskowiak12-Dec-05 19:54
mveDave Kreskowiak12-Dec-05 19:54 
Questionarranging ownedforms(owner-ownedform) Pin
tonato84812-Dec-05 17:41
tonato84812-Dec-05 17:41 
AnswerRe: arranging ownedforms(owner-ownedform) Pin
HakunaMatada12-Dec-05 18:23
HakunaMatada12-Dec-05 18:23 

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.