Angular 2: Difference between revisions

Jump to navigation Jump to search
add turn off connection logging
Line 3: Line 3:
=== turn off connection logging ===
=== turn off connection logging ===


Setting logConnection to false in bs-config.json did not work. The connection is logged by a middleware called connect-logger and you can disable it by creating <span class="package">bs-config.json</span> with the following content.
Setting logConnection to false in bs-config.json did not work. The connection is logged by a middleware called connect-logger and you can disable it by creating <span class="package">bs-config.js</span> with the following content.


<source lang="json">
<source lang="js" highlight="2">
{
module.exports = {
        "middleware": {
  server: { middleware: { 0: null }}
                "0": null
};
        }
</source>
}
 
=== turn off file change updates ===
 
Add <span class="shell">logFileChanges</span> line to disable logging of file change updates.
 
<source lang="js" highlight="3">
module.exports = {
  server: { middleware: { 0: null }},
  logFileChanges: false
};
</source>
</source>


Navigation menu