0

Hi I'm using Enterprise Library 5, I defined rolling flat file trace listener, to save my logs to a file, how can I address this file to be saved on another machine on LAN?

MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
Masoud
  • 8,020
  • 12
  • 62
  • 123

1 Answers1

1

I haven't tested this, but this Q seems to have all the config for tracing to a log file using ent lib: Implementing Log file using Enterprise Library in asp.net The relevant section is "listeners/filename"

And to log to another machine, it's just a matter of NTFS permissions and the path

You need to have the code running under a domain account that can write to the remove file (or two local accounts with the same password for a workgroup scenario)

The path will either be \machinename\sharedFolderName or \ipAddress\sharedFolderName or y:\ if you map a letter to the drive.

Community
  • 1
  • 1
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
  • thanks, my problem was incorrect permissions, after set correct permissions on Shared folder, my problem solved. – Masoud Feb 03 '13 at 06:51