31 lines
705 B
Python
31 lines
705 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Optional, Self, Any
|
|
from abc import ABC, abstractmethod
|
|
|
|
class LogsProcedureInterface(ABC):
|
|
|
|
@abstractmethod
|
|
def set_log(self:Self,
|
|
application:str,
|
|
file:str,
|
|
method:str,
|
|
line:int,
|
|
message:str,
|
|
error:int = 0,
|
|
parameters:dict[str, Any|None] = {}
|
|
) -> None:pass
|
|
|
|
@abstractmethod
|
|
def set_exception(self:Self,
|
|
application:str,
|
|
file:str,
|
|
method:str,
|
|
line:int,
|
|
message:str,
|
|
exception:str,
|
|
trace:str,
|
|
parameters:dict[str, Any|None] = {},
|
|
status:Optional[str] = None
|
|
) -> None:pass |