Activity log not working as expected

I have given below in config file
‘log_type’ => ‘file’,
‘logfile’ => ‘/var/www/nextcloud/data/nextcloud.log’,
‘loglevel’ => ‘3’,
‘logdateformat’ => ‘F d, Y H:i:s’,

Also find screenshot

The configuration parameters you quoted are for the log function (mind the “log” part of the parameter names) and have no influence on activities at all. Activities are created once you upload or download files etc. Please read the documentation to better understand the purpose of the app.

Thanks for your response. Now i am have nextcloud latest vesion(Nextcloud 19).
Getting below errors for activitylog

OCP\AppFramework\QueryException: Could not resolve mapper! Class mapper does not exist

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 116:

OC\AppFramework\Utility\SimpleContainer->resolve("mapper")

/var/www/html/nextcloudnew/nextcloud/lib/private/ServerContainer.php - line 149:

OC\AppFramework\Utility\SimpleContainer->query("mapper", true)

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 388:

OC\ServerContainer->query("mapper", true)

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 78:

OC\AppFramework\DependencyInjection\DIContainer->query("mapper")

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 101:

OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionCl ... "})

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 116:

OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\Activi ... r")

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 414:

OC\AppFramework\Utility\SimpleContainer->query("OCA\\Activi ... r")

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 385:

OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\Activi ... r")

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/App.php - line 124:

OC\AppFramework\DependencyInjection\DIContainer->query("OCA\\Activi ... r")

/var/www/html/nextcloudnew/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main("OCA\\Activi ... r", "db", OC\AppFramew ... {}, { _route: "activitylog.log.db"})

<<closure>>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "activitylog.log.db"})

/var/www/html/nextcloudnew/nextcloud/lib/private/Route/Router.php - line 297:

call_user_func(OC\AppFramew ... {}, { _route: "activitylog.log.db"})

/var/www/html/nextcloudnew/nextcloud/lib/base.php - line 1007:

OC\Route\Router->match("/apps/activitylog/log/db")

/var/www/html/nextcloudnew/nextcloud/index.php - line 37:

OC::handleRequest()

How to resolve this issue?