mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
[Eventlog] Show extra data in log table.
This commit is contained in:
parent
f7d0524f57
commit
8b1eccc48d
12 changed files with 351 additions and 2 deletions
|
@ -37,4 +37,41 @@ class ExceptionLogEntry extends AbstractLogEntry
|
|||
{
|
||||
throw new LogEntryObsoleteException();
|
||||
}
|
||||
|
||||
/**
|
||||
* The class name of the exception that caused this log entry.
|
||||
* @return string
|
||||
*/
|
||||
public function getExceptionClass(): string
|
||||
{
|
||||
return $this->extra['t'] ?? "Unknown Class";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the file where the exception happened.
|
||||
* @return string
|
||||
*/
|
||||
public function getFile(): string
|
||||
{
|
||||
return $this->extra['f'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the line where the exception happened
|
||||
* @return int
|
||||
*/
|
||||
public function getLine(): int
|
||||
{
|
||||
return $this->extra['l'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the message of the exception.
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage(): string
|
||||
{
|
||||
return $this->extra['m'];
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue