class AzuCLI::Middleware::Logging

Overview

Logging middleware for command execution

Defined in:

azu_cli/middleware/logging.cr

Instance Method Summary

Instance methods inherited from class AzuCLI::Middleware::Base

after(command : Commands::Base, result : Commands::Result) after, before(command : Commands::Base, args : Array(String)) before, error(command : Commands::Base, error : Exception) error

Instance Method Detail

def after(command : Commands::Base, result : Commands::Result) #
Description copied from class AzuCLI::Middleware::Base

Called after command execution


[View source]
def before(command : Commands::Base, args : Array(String)) #
Description copied from class AzuCLI::Middleware::Base

Called before command execution


[View source]
def error(command : Commands::Base, error : Exception) #
Description copied from class AzuCLI::Middleware::Base

Called when an error occurs


[View source]