Base solution for your next web application
Open Closed

Configure logging #6558


User avatar
0
ajayak created

How to disable logging of all events in Logs file and only keep exception logs and logs that are added by Logger?

Is it possible to write Logger logs in seperate log files?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ajayak

    1. AspNet Zero uses log4net as you know. You can set loglevel in log4net configuration to only log error logs.

    logs that are added by Logger

    I couldn't understand this. All logs are written by Logger.

    Is it possible to write Logger logs in seperate log files?

    As I said, all logs are written by Logger. So, you can define a pattern in log4net config to write it into a differnet file.