Home > Net >  The.net log4 log file save problem solving!
The.net log4 log file save problem solving!

Time:09-20

log4 configuration file path is:
Normal run run locally,
The question now is: the site is published to the IIS on, then made a file mapping, the file to another folder, but after the execution or in the project folder to generate the corresponding log file, not in the specified map files in the folder
Mapping the folder permissions are: everyone full control permissions,
Ask god to how to solve this problem?

CodePudding user response:

You create a new virtual directory, corresponding log directory, you name..

Then the virtual directory to try somewhere else?

CodePudding user response:

reference 1st floor by_ love reply:
you create a new virtual directory, the corresponding log directory, you name..

Then the virtual directory to try somewhere else?

Now is such, the log generated file is not generated in the virtual directory to other folder, but in the project folder to generate the corresponding folders and files

CodePudding user response:

refer to the second floor ft1507999 response:
Quote: refer to 1st floor by_ love reply:

You create a new virtual directory, corresponding log directory, you name..

Then the virtual directory to try somewhere else?

Now is such, the log generated file is not generated in the virtual directory to other folder, but in the project folder to generate the corresponding folders and files

The file \ \ FWQ_HT_LOG \ \ try changing site under relative path

CodePudding user response:

Well, when you point to the virtual directory is to use the mklink?

CodePudding user response:

The
reference 4 floor SayoKun reply:
well, when you point to the virtual directory is with mklink?

The configuration of virtual directory is operating on IIS,

CodePudding user response:

Directly pointing at the fixed directory calculate, next time don't just copy log4.net.config configuration file,
  • Related