Info logging not working to nextcloud log

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 14.0.3
Operating system and version (eg, Ubuntu 17.04): RHEL 7.5
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1): 7.2.11

The issue you are facing:
When loglevel is set to 1 in config.php for info, no info level messages are logged. Debug level works, as does warn level, but nothing for info. When set to debug level, there were still no info level messages logged to the nextcloud.log file. We enabled the Auditing / Logging app, which is sending file related messages to the audit.log file correctly, but with user ID instead of user name.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Installed nextcloud apache version with nginx and mariadb containers, set up with docker-compose file.
  2. Integrated successfully with Active Directory for authentication.
  3. Uploaded / deleted files.

The output of your Nextcloud log in Admin > Logging:

Just a few invalid login attempts.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'oc11g74qrh8r',
  'loglevel' => 1,
  'passwordsalt' => '<string>',
  'secret' => '<string>',
  'trusted_domains' =>
  array (
    0 => 'nextcloud-app',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'overwrite.cli.url' => 'http://nextcloud-app',
  'overwritehost' => 'nextcloud.<domain>',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => '',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '<PW>',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The output of your Apache/nginx/system log in /var/log/____:

Sample audit.log message with user ID.  Can we change this to list username instead of ID????

{"reqId":"NhUGTIJjBYQA6He4dswz","level":1,"time":"2018-11-06T17:58:36+00:00","remoteAddr":"172.17.0.4","user":"8C861345-0B06-4465-989D-FA76C086FF60","app":"admin_audit","method":"PUT","url":"\/remote.php\/webdav\/7160-002.txt","message":"File created: \"\/\/7160-002.txt\"","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"14.0.3.0"}