java - Log exceptions in separate files for each tenant in multi-tenancy architecture -
i having application multi-tenancy support, 1 server , multiple db, there separate db each tenant. exceptions thrown in application logged in 1 single log. tenantid printed along exception.
i handle in separate file, i.e each tenant separate log file. helpful in identifying exception caused because of activity done user belonging particular tenant. there possibilities achieving using custom objectrenderer
or other techniques. in advance.
my suggestion create own appenders
. in custom appenders
can thing want separate log file etc..,
reference : how create own appender in log4j? http://logging.apache.org/log4j/2.x/manual/extending.html
Comments
Post a Comment