Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Getting a Log Folder Reference Path inside a helper project -- Please read

Reply
Thread Tools

Getting a Log Folder Reference Path inside a helper project -- Please read

 
 
Rahul
Guest
Posts: n/a
 
      11-28-2006
Hi

I have a project A that uses a Web Service Project B .
Project A uses another Project named Utility , -- that is responsible
for logging the errors as well as comments in the log file.

The structure is like this

----- Project B (Web Service)
|
----Project A(DLL's Packed Inside mostly implmentation)
|
----Project Utility ) Project A uses Utility project to log - also
Project B can also use Utiltiy.

My question is Since the Utility project is reponsible for writing the
msg to the log file how do i make sure that All the logs are written to
LOG folder under Project B.

I am not able to understand how and from where Utility Project should
read the path so that it understands that it has to write messages
under the log file that is placed under LOG folder under Project B. as
during deployment the user can deply this web service project in any
drive, etcc.

Would appreciate your help.

Thanks

 
Reply With Quote
 
 
 
 
Catalin T
Guest
Posts: n/a
 
      12-07-2006
Rahul,
You can design your logging DLL to take the path of the LOG folder from the
calling application, in your case Project B or A. In Project B (WS) you can
translate the logical path of LOG to physical path using Server.Map, that way
no matter where the app is installed the path will be correctly translated to
physical and passed to the logging tool.

Hope this helps.
Catalin Tomescu


"Rahul" wrote:

> Hi
>
> I have a project A that uses a Web Service Project B .
> Project A uses another Project named Utility , -- that is responsible
> for logging the errors as well as comments in the log file.
>
> The structure is like this
>
> ----- Project B (Web Service)
> |
> ----Project A(DLL's Packed Inside mostly implmentation)
> |
> ----Project Utility ) Project A uses Utility project to log - also
> Project B can also use Utiltiy.
>
> My question is Since the Utility project is reponsible for writing the
> msg to the log file how do i make sure that All the logs are written to
> LOG folder under Project B.
>
> I am not able to understand how and from where Utility Project should
> read the path so that it understands that it has to write messages
> under the log file that is placed under LOG folder under Project B. as
> during deployment the user can deply this web service project in any
> drive, etcc.
>
> Would appreciate your help.
>
> Thanks
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff. the JRE INSIDE the jdk folder and JRE OUTSIDE the JDK folder? Jochen Brenzlinger Java 5 09-02-2011 08:48 PM
helper function - full app path ("~/") SpaceMarine ASP .Net 9 03-17-2009 06:03 PM
What's the purpose of the helper cache and is there a way to just turn off helper cache-ing? kevin Ruby 1 07-21-2006 03:42 AM
RoR - ApplicationController: missing default helper path application_helper bojo Ruby 1 04-09-2006 05:48 AM
Helper function inside template column Chris ASP .Net Datagrid Control 1 11-25-2003 08:51 AM



Advertisments