Re: Log files of two app instances of same app are showing same data
Hi Iqbal,
This is by design.
One App Service has only a single log file and all App Instances write into the same log file, as every instance still runs inside the same process.
Every log written by using AppInstance::Log is prefixed with name@domain of the instance which called the Log function.
If you just use debug->printf, you won't be able to distinct logs of different instances and these logs will be always written independent of configured trace flags on an instance, so the usage of debug->printf is discouraged for production usage.
The trace flags configuration is done per instance, so you can e.g. enable database traces just on instance1 so you'll just see database logs of instance1 and not of other instances.
Greetings,
Daniel