getparthenon / monorepo

Monorepo for Parthenon development
https://getparthenon.com
GNU Lesser General Public License v2.1
5 stars 2 forks source link

[Athena] Log Event View #12

Closed that-guy-iain closed 6 months ago

that-guy-iain commented 2 years ago

Problem

Employees want to see events relating to a specific object.

Logging tools can be intimidating as well as hard to navigate.

Solution

Provide the ability to add the ability to fetch and view logs relating to an object directly from the Athena object view page.

It would need to be able to:

Logging Systems to Support:

Example

Possbile idea to support multiple

interface LogRepositoryInterface
{
  /**
   * @return LogResult[]
   */
  public function search(SearchRules $searchRules) : array;
}

Possible way to support the ability to find logs

interface SearchRules 
{
  public function addRule(SearchRule $searchRule): void;

  public function fetchCompiledRules(): mixed;
}

Possible way of supporting mapping data

interface LogMapperInterface
{
  public function mapData(mixed $data) : array
}