?i»?
Current Path : /home/scgforma/www/cloud/core/doc/admin/configuration_server/ |
Current File : /home/scgforma/www/cloud/core/doc/admin/configuration_server/logging_configuration.html |
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Logging configuration — Nextcloud 13 Administration Manual 13 documentation</title> <link rel="stylesheet" href="../_static/" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/main.min.css" type="text/css" /> <link rel="stylesheet" href="../_static/styles.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '13', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="../_static/js/jquery-fix.js"></script> <script type="text/javascript" src="../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script> <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script> <link rel="top" title="Nextcloud 13 Administration Manual 13 documentation" href="../contents.html" /> <link rel="up" title="Server configuration" href="index.html" /> <link rel="next" title="Hardening and security guidance" href="harden_server.html" /> <link rel="prev" title="Language configuration" href="language_configuration.html" /> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="theme-color" content="#1d2d44"> </head> <body role="document"> <div class="wrap container not-front"> <div class="content row"> <main class="main"> <div class="row"> <div class="col-md-3"> <div class="sidebar"> <h1>Nextcloud 13 Administration Manual</h1> <div class="sidebar-search"> <form class="headersearch" action="../search.html" method="get"> <input type="text" value="" name="q" id="q" class="form-control" /> <button class="btn btn-default" type="submit" id="searchsubmit">Search</button> </form> </div> <div class="menu-support-container"> <ul id="menu-support" class="menu"> <ul> <li><a href="../contents.html">Table of Contents</a></li> </ul> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li> <li class="toctree-l1"><a class="reference internal" href="../release_notes.html">Release notes</a></li> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Server configuration</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="security_setup_warnings.html">Warnings on admin page</a></li> <li class="toctree-l2"><a class="reference internal" href="occ_command.html">Using the occ command</a></li> <li class="toctree-l2"><a class="reference internal" href="activity_configuration.html">Configuring the activity app</a></li> <li class="toctree-l2"><a class="reference internal" href="caching_configuration.html">Configuring memory caching</a></li> <li class="toctree-l2"><a class="reference internal" href="background_jobs_configuration.html">Defining background jobs</a></li> <li class="toctree-l2"><a class="reference internal" href="config_sample_php_parameters.html">Config.php Parameters</a></li> <li class="toctree-l2"><a class="reference internal" href="email_configuration.html">Email configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="external_sites.html">Linking external sites</a></li> <li class="toctree-l2"><a class="reference internal" href="language_configuration.html">Language configuration</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Logging configuration</a><ul> <li class="toctree-l3"><a class="reference internal" href="#parameters">Parameters</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="harden_server.html">Hardening and security guidance</a></li> <li class="toctree-l2"><a class="reference internal" href="reverse_proxy_configuration.html">Reverse proxy configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="thirdparty_php_configuration.html">Using third party PHP components</a></li> <li class="toctree-l2"><a class="reference internal" href="automatic_configuration.html">Automatic configuration setup</a></li> <li class="toctree-l2"><a class="reference internal" href="server_tuning.html">Server tuning</a></li> <li class="toctree-l2"><a class="reference internal" href="theming.html">Theming</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../configuration_user/index.html">User management</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_files/index.html">File sharing and management</a></li> <li class="toctree-l1"><a class="reference internal" href="../file_workflows/index.html">File workflows</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_database/index.html">Database configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_mimetypes/index.html">Mimetypes management</a></li> <li class="toctree-l1"><a class="reference internal" href="../maintenance/index.html">Maintenance</a></li> <li class="toctree-l1"><a class="reference internal" href="../issues/index.html">Issues and troubleshooting</a></li> </ul> </ul> </div> </div> </div> <div class="col-md-9"> <div class="page-content"> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="language_configuration.html" title="Previous Chapter: Language configuration"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Language configuration</span> </a> </li> <li class="next"> <a href="harden_server.html" title="Next Chapter: Hardening and security guidance"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Hardening and security guidance »</span> </a> </li> </ul> <div class="section" id="logging-configuration"> <h1>Logging configuration<a class="headerlink" href="#logging-configuration" title="Permalink to this headline">¶</a></h1> <p>Use your Nextcloud log to review system status, or to help debug problems. You may adjust logging levels, and choose between using the Nextcloud log or your syslog.</p> <div class="section" id="parameters"> <h2>Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2> <p>Logging levels range from <strong>DEBUG</strong>, which logs all activity, to <strong>FATAL</strong>, which logs only fatal errors.</p> <ul class="simple"> <li><strong>0</strong>: DEBUG: All activity; the most detailed logging.</li> <li><strong>1</strong>: INFO: Activity such as user logins and file activities, plus warnings, errors, and fatal errors.</li> <li><strong>2</strong>: WARN: Operations succeed, but with warnings of potential problems, plus errors and fatal errors.</li> <li><strong>3</strong>: ERROR: An operation fails, but other services and operations continue, plus fatal errors.</li> <li><strong>4</strong>: FATAL: The server stops.</li> </ul> <p>By default the log level is set to <strong>2</strong> (WARN). Use <strong>DEBUG</strong> when you have a problem to diagnose, and then reset your log level to a less-verbose level as <strong>DEBUG</strong> outputs a lot of information, and can affect your server performance.</p> <p>Logging level parameters are set in the <code class="file docutils literal"><span class="pre">config/config.php</span></code> file, or on the Admin page of your Nextcloud Web GUI.</p> <div class="section" id="nextcloud"> <h3>Nextcloud<a class="headerlink" href="#nextcloud" title="Permalink to this headline">¶</a></h3> <p>All log information will be written to a separate log file which can be viewed using the log viewer on your Admin page. By default, a log file named <strong>nextcloud.log</strong> will be created in the directory which has been configured by the <strong>datadirectory</strong> parameter in <code class="file docutils literal"><span class="pre">config/config.php</span></code>.</p> <p>The desired date format can optionally be defined using the <strong>logdateformat</strong> parameter in <code class="file docutils literal"><span class="pre">config/config.php</span></code>. By default the <a class="reference external" href="http://www.php.net/manual/en/function.date.php">PHP date function</a> parameter “<em>c</em>” is used, and therefore the date/time is written in the format “<em>2013-01-10T15:20:25+02:00</em>”. By using the date format in the example below, the date/time format will be written in the format “<em>January 10, 2013 15:20:25</em>”.</p> <div class="highlight-python"><div class="highlight"><pre>"log_type" => "owncloud", "logfile" => "nextcloud.log", "loglevel" => "3", "logdateformat" => "F d, Y H:i:s", </pre></div> </div> </div> <div class="section" id="syslog"> <h3>syslog<a class="headerlink" href="#syslog" title="Permalink to this headline">¶</a></h3> <p>All log information will be sent to your default syslog daemon.</p> <div class="highlight-python"><div class="highlight"><pre>"log_type" => "syslog", "logfile" => "", "loglevel" => "3", </pre></div> </div> </div> </div> </div> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="language_configuration.html" title="Previous Chapter: Language configuration"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Language configuration</span> </a> </li> <li class="next"> <a href="harden_server.html" title="Next Chapter: Hardening and security guidance"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Hardening and security guidance »</span> </a> </li> </ul> </div> </div> </div> </main> </div> </div> </body> </html>