basic logger functionality added - accessible via http://nodebb/admin/logger
parent
aacd42f4bc
commit
55d84d0f9b
@ -0,0 +1,33 @@
|
|||||||
|
<h1>Logger</h1>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<h3>Logger Settings</h3>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
By enabling the check box, you will receive http logs to standard output. If you specify a path, logs will then be saved to a file instead.
|
||||||
|
</p>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" data-field="loggerStatus"> <strong>Enable logging</strong>
|
||||||
|
</label>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<label>Path to log file</label>
|
||||||
|
<input class="form-control" type="text" placeholder="/path/to/log/file.log" data-field="loggerPath" /><br />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="btn btn-lg btn-primary" id="save">Save</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var loadDelay = setInterval(function() {
|
||||||
|
if (nodebb_admin) {
|
||||||
|
nodebb_admin.prepare();
|
||||||
|
clearInterval(loadDelay);
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
|
</script>
|
Loading…
Reference in New Issue