I'm not sure what the exact requirements are here, so let's clarify them in this task before implementing a solution.
Some things to note (about the current solution):
- Currently we log to irc, from there salbot records the log
- For that currently we use SALLogger from wmcs_libs.common, that in turn connects to wm-bot.wm-bot.wmcloud.org and sends the '!log <project>' message to #wikimedia-cloud-feed. This is the same process as the dologmsg script installed in the VMs:
dcaro@tools-sgebastion-10:~$ dologmsg --help Usage: dologmsg MESSAGE... Arguments are concatenated into a log message for the current tool account and sent to #wikimedia-cloud. For example, when user johndoe runs the command 'dologmsg webservice restart' from the tools.example account, the following message will be sent to #wikimedia-cloud: !log tools.example <johndoe> webservice restart stashbot will then add a '<johndoe> webservice restart' log entry to https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.example/SAL .