ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class ClearLogsCommand(BaseCommand): (source)

View In Hierarchy

Remove files generated by the application's logging channels.

Method handle Remove framework log files and compressed rotated logs.
Class Variable description Clear framework log files..
Class Variable signature clear:logs.
Class Variable timestamps Timestamps flag used by ClearLogsCommand.
def handle(self, app: IApplication, console: Console, logger: ILogger) -> int: (source)

Remove framework log files and compressed rotated logs.

Parameters
app:orionis.IApplicationApplication providing the log directory and channel paths.
console:orionis.console.ConsoleConsole used to report the cleanup result.
logger:orionis.logging.contracts.ILoggerFramework logger whose open files must be released.
Returns
intZero when every log is removed; one when removal fails.
description: str = (source)

Clear framework log files..

signature: str = (source)

clear:logs.

timestamps: bool = (source)

Timestamps flag used by ClearLogsCommand.