Bug 114982 - AdminConsole: control logging ...
Summary: AdminConsole: control logging ...
Status: NEW
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillCpp, skillJavaScript, topicCleanup
Depends on:
Blocks: LOOL-Admin-Console
  Show dependency treegraph
 
Reported: 2018-01-12 16:53 UTC by Michael Meeks
Modified: 2019-02-03 05:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2018-01-12 16:53:48 UTC
It would be extremely useful to be able to turn up and down the log-level on the admin-console (and to browse the logs but that's something else ;-) dynamically at run time.

This belongs in the 'Settings' page - checkout:

loleaflet/dist/admin/adminSettings.html
loleaflet/src/admin/AdminSocketSettings.js

To add the log level setting and then:

wsd/Admin.cpp-    else if (tokens[0] == "settings")

wsd/protocol.txt: needs updating too.

And of course we need to set the log level with:

        Log::logger().setLevel(LogLevel);

For bonus points we should really propagate this to all the WSD children too including the forkit - but that is a fair bit of protocol work & tweaking =)

Thanks !