poshbotio / PoshBot

Powershell-based bot framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to store command approvals information?

LuisRendonS opened this issue · comments

Hey There, I hope someone can help me with this question. Right now I'm working with command approvals for deployment commands and i would like to store the information of the approval in a log file (if it was approved or denied, approver name, time of the approval, execution ID). I really hope this can be possible since it would be very helpful in my company.

@LuisRendonS it would be possible to do this with PoshBot middleware hooks I don't see one that does what you are looking for specifically, but the docs show an example of PostReceive log message or the PostExecute log results that you might be able to tweak to your needs.

@DunlapOverbelt thanks for your reply. You are rigth, i was looking for this the past few days but i couldn't find anything, so i guess i'll have to play a little with middleware hooks. Cheers