473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

asynchronous logging with enterprise library logging application block.

I am trying to use asynchronous logging using MSMQ and I have configured the
properties as defined in the help (see below) I don't understand where the
property 'MsmqPath' is in the app.config for MSMQDistrbutor.exe is it meant
to be an aplication settings or an enterprise library setting in the
app.config?

I have tried creating an application setting value for it but it still fails
to write to the logging destination?

Also is this meant to be registered as a service?
To choose asynchronous logging.

1.. In the Enterprise Library Configuration Console, expand Client
Settings, right-click Distribution Strategies, point to New and then click
MSMQ.
2.. Select the strategy and then specify the QueuePath for the strategy.
3.. Select Client Settings, and then modify the DistributionStrategy
property to select the MSMQ distribution strategy you created.
4.. Open the MSMQDistributor.exe.config file with the Configuration
Console, located in the directory containing the file MSMQDistributor.exe.
Modify the MsmqPath property of the MSMQ Distributor Service to match the
QueuePath property of the MSMQ distribution strategy you selected in step 2.
This distribution strategy will be used for all messages that are not
filtered out.

Note Do not use the In Process distributor strategy and the MSMQ
distributor strategy to log to the same flat file sink. Using both the In
Process and MSMQ distributor strategies with the same flat file sink may
result in simultaneous attempts to write to the same file. This will result
in failure due to the file resource being in use by another process.

Has anyone got any ideas?

I followed the instructions below to allow for an MSMQ not registered with
AD.

http://mvwood.com/blogs/blog/archive...03/04/321.aspx

Cheers

Ollie Riches
Nov 17 '05 #1
1 8171
found the problem, the 'install services' had not installed the
MSMQDistributor service correctly.
"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
I am trying to use asynchronous logging using MSMQ and I have configured
the properties as defined in the help (see below) I don't understand where
the property 'MsmqPath' is in the app.config for MSMQDistrbutor.exe is it
meant to be an aplication settings or an enterprise library setting in the
app.config?

I have tried creating an application setting value for it but it still
fails to write to the logging destination?

Also is this meant to be registered as a service?
To choose asynchronous logging.

1.. In the Enterprise Library Configuration Console, expand Client
Settings, right-click Distribution Strategies, point to New and then click
MSMQ.
2.. Select the strategy and then specify the QueuePath for the strategy.
3.. Select Client Settings, and then modify the DistributionStrategy
property to select the MSMQ distribution strategy you created.
4.. Open the MSMQDistributor.exe.config file with the Configuration
Console, located in the directory containing the file MSMQDistributor.exe.
Modify the MsmqPath property of the MSMQ Distributor Service to match the
QueuePath property of the MSMQ distribution strategy you selected in step
2.
This distribution strategy will be used for all messages that are not
filtered out.

Note Do not use the In Process distributor strategy and the MSMQ
distributor strategy to log to the same flat file sink. Using both the In
Process and MSMQ distributor strategies with the same flat file sink may
result in simultaneous attempts to write to the same file. This will
result in failure due to the file resource being in use by another
process.

Has anyone got any ideas?

I followed the instructions below to allow for an MSMQ not registered with
AD.

http://mvwood.com/blogs/blog/archive...03/04/321.aspx

Cheers

Ollie Riches

Nov 17 '05 #2

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

Similar topics

0
by: Ollie Riches | last post by:
I have managed to get asycnhronous logging work for an asp.net application and I wanted some clarification on the method. Normally if the application is logging synchronously it has all the...
1
by: D | last post by:
I was wondering if anyone knew any places where I could get some more specifics about it. I have read the docs but they seem very vague to me and don't describe all the available settings. ...
7
by: amitos | last post by:
Hi! I consider using the Logging Application Block, Enterprise Library, Jan 2006 in a major project. To date, I've found that some of its features are not very well documented. One important...
3
by: Dick | last post by:
How do I integrating ASP.NET Tracing with the Enterprise Library Logging Application Block? I guess this should be possible and in a similar way to the way ASP.NET Tracing is integrated with...
1
by: sreedharv | last post by:
Log4Net vs Enterprise Library - Logging Application Block Please list or point to the comparison. My requirements are: - 50 to 70 web servers - Track Machine name - Extract class / method...
2
by: Anup Daware | last post by:
Hi Group, Can somebody tell me where I can find the internals of Logging application block 2.0/3.0. I need answers for the questions like: What best practices have followed in the...
0
by: =?Utf-8?B?U2hyaWthbnQgTW9yZQ==?= | last post by:
Using enterprise library's 3.1 Logging Application Block , how can i get the custom source name in the windows event log.When ever i am logging an error in windows event log , it gives the source...
1
by: arunairs | last post by:
Hi, Using the EnterpriseLibrary 4.0, is it possible to Log the method name in the log file. I have it cofigured thus: <loggingConfiguration name="Logging Application Block"...
5
by: Daniel S | last post by:
Hi, I'm new here. I'm using the Logging Application Block with Enterprise Library 3.1. My program works correctly on my XP developer station, but on the 2003 Server, no new entries appear in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.