for example, I have a task to execute one show command, and I got logging like below
2021-10-12 22:54:23,675 - nornir.core.task - DEBUG - start() - Host 'r1249': running task '[pre-check] - show run interface GigabitEthernet2/8'
from print_result, I got the output like below
---- [pre-check] - show run interface GigabitEthernet2/8 ** changed : False ---- INFO
Building configuration...
Current configuration : 217 bytes
!
interface GigabitEthernet2/8
description peng xiao test
no ip address
logging event link-status
shutdown
udld port
no mdix auto
no cdp enable
spanning-tree portfast edge
spanning-tree bpduguard enable
end
so how can I add the print_result output into the logging file?
for example, I have a task to execute one show command, and I got logging like below
from print_result, I got the output like below
so how can I add the print_result output into the logging file?