473,569 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EntLib June 2005 Exception Logging

By using the EntLib config tool, we have to set the filepath at design time.
I'm looking for a way to set path of the log file at a variable path because
when i package and deploy my desktop application the trace.log file should
be in the application path.

How can i set a filename as the current date (something like 030305.log). So
a log file created for a particular day can be identified by the date.
Sep 15 '05 #1
1 1382
I have not actually tried this, but could you not just have you application
programtically change the location of the log file in the
loggingconfigur ation.config XML file?

--
Scott Hanslip
"tintin" wrote:
By using the EntLib config tool, we have to set the filepath at design time.
I'm looking for a way to set path of the log file at a variable path because
when i package and deploy my desktop application the trace.log file should
be in the application path.

How can i set a filename as the current date (something like 030305.log). So
a log file created for a particular day can be identified by the date.

Sep 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4611
by: Steven | last post by:
I just downloaded the June 2005 release and I want to set up basic logging to log problems such as exceptions. I have created a category named Exceptions with the following: <category name="Exceptions"> <destinations> <destination name="Event Log Destination" sink="Event Log Sink" format="Text Formatter" /> </destinations> </category>
1
225
by: tintin | last post by:
By using the EntLib config tool, we have to set the filepath at design time. I'm looking for a way to set path of the log file at a variable path because when i package and deploy my desktop application the trace.log file should be in the application path. How can i set a filename as the current date (something like 030305.log). So a...
0
993
by: Heinz | last post by:
Hi all, is this the correct forum for questions regarding enterprise library (June 2005) ? I hope so.... I'm searching for closer information regarding encryption within configuration application block. I use Configuration application block and encrypted my configuration file. Everything works fine, my application is able to read the...
3
2401
by: marmaxx | last post by:
I am currently making the transition from Visual Studio .NET 2003 to Visual Studio 2005, and I am looking for suggestions regarding how to implement an exception logging scheme. In my previous projects, I was using log4net (with varying degrees of success). Does Visual Studio 2005 have built in logging support? (I haven't been able to...
0
1065
by: Raymond Roelands | last post by:
It seems that it's not possible to have nested .Net web applications (application in a virtual directory under another asp.net application) having each application it's own configuration for the Entlib 2.0 Logging block. The only way to get it working is to configure the logging block for both applications in the main application. So the...
3
2810
by: Mukesh | last post by:
Hi all I have Created an web application using VS 2005, asp.net2.0, Ajax Extensions 1.0, Ent Lib 3.1 , MS sql Server 2005, ajax Control tool kit Version 1.0.10618.0
3
3572
by: rockdale | last post by:
Hi, all: My web application using MS EntLib for .net 2.0 (Jan 2006) to access my backend database. It works fine with MS SQL 2k. Now we are migrate from MS SQL to mySQL. Everything looks fine except one serious problem: we got the "too many connections" error. Looks like the EntLib did not properly close these connections. on mySQL...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.