Index

Package: Log_Request

Description

package Alog.Log_Request is
Log request type. Log request objects are used for asynchronous logging and hold all relevant information of a log request.

Classes

Instance

type Instance is tagged private;

Primitive operations:

Get_Caller_ID
Get_Log_Level
A log request contains all related information to log asynchronously (Caller identification, loglevel and message).

Subprograms & Entries

Create

function Create 
(ID: Task_Id := Current_Task;
Source: String := "";
Level: Log_Level := Debug;
Message: String) return Instance;
Create a log request object from the specified parameters.

Get_Caller_ID

function Get_Caller_ID 
(Request: Instance) return Task_Id;
Return the caller ID of the request object.

Get_Source

function Get_Source 
(Request: Instance) return String;
Return the source of the request object.

Get_Log_Level

function Get_Log_Level 
(Request: Instance) return Log_Level;
Return the loglevel of the request object.

Get_Message

function Get_Message 
(Request: Instance) return String;
Return the log message of the request object.