This file is indexed.

/usr/share/ada/adainclude/log4ada/log4ada-loggers.ads is in liblog4ada3-dev 1.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
------------------------------------------------------------------------------
--                                  Log4Ada                                 --
--                                                                          --
--                            Copyright (C) 2007                            --
--                              X. Grave CNRS                               --
--                                                                          --
--  This library is free software; you can redistribute it and/or modify    --
--  it under the terms of the GNU General Public License as published by    --
--  the Free Software Foundation; either version 2 of the License, or (at   --
--  your option) any later version.                                         --
--                                                                          --
--  This library is distributed in the hope that it will be useful, but     --
--  WITHOUT ANY WARRANTY; without even the implied warranty of              --
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       --
--  General Public License for more details.                                --
--                                                                          --
--  You should have received a copy of the GNU General Public License       --
--  along with this library; if not, write to the Free Software Foundation, --
--  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.          --
--                                                                          --
with Ada.Containers.Vectors;
with Ada.Exceptions;

with Log4ada.Appenders;
with Log4ada.Events;
with Log4ada.Types;

package Log4ada.Loggers is
   type Logger_Type is new Types.Base_Type with private;
   type Logger_Class_Access is access all Logger_Type'Class;
   type Logger_Access is access all Logger_Type;

   procedure Set_Level (Logger : not null access Logger_Type;
                        New_Level : Level_Type);
   function Get_Level (Logger : not null access Logger_Type) return Level_Type;
   procedure Add_Appender (Logger : not null access Logger_Type;
                           Appender : Appenders.Appender_Class_Access);
   procedure Event_Out (Logger : not null access Logger_Type;
                        Event : Events.Event_Type);
   procedure Set_Memory_Depth (Logger : not null access Logger_Type;
                               Depth : Natural);
   procedure Debug_Out
     (Logger : not null access Logger_Type;
      Message : String;
      Exception_To_Send : Ada.Exceptions.Exception_Occurrence);
   procedure Info_Out
     (Logger : not null access Logger_Type;
      Message : String;
      Exception_To_Send : Ada.Exceptions.Exception_Occurrence);
   procedure Warn_Out
     (Logger : not null access Logger_Type;
      Message : String;
      Exception_To_Send : Ada.Exceptions.Exception_Occurrence);
   procedure Error_Out
     (Logger : not null access Logger_Type;
      Message : String;
      Exception_To_Send : Ada.Exceptions.Exception_Occurrence);
   procedure Fatal_Out
     (Logger : not null access Logger_Type;
      Message : String;
      Exception_To_Send : Ada.Exceptions.Exception_Occurrence);

   procedure Debug_Out (Logger : not null access Logger_Type;
                        Message : String);
   procedure Info_Out (Logger : not null access Logger_Type;
                       Message : String);
   procedure Warn_Out (Logger : not null access Logger_Type;
                       Message : String);
   procedure Error_Out (Logger : not null access Logger_Type;
                        Message : String);
   procedure Fatal_Out (Logger : not null access Logger_Type;
                        Message : String);
   procedure Memory_Out (Logger : not null access Logger_Type;
                         Level : Level_Type);
   No_Appender : exception;
   procedure Logger_Output
     (Logger : not null access Logger_Type;
      Message : String;
      Level : Level_Type;
      Exception_To_Send : Ada.Exceptions.Exception_Occurrence);
   procedure Logger_Output
     (Logger : not null access Logger_Type;
      Message : String;
      Level : Level_Type);
   procedure Set_Lock_Delay (Logger : not null access Logger_Type;
                             Lock_Delay : Duration);

private
   package Appenders_Vector is new Ada.Containers.Vectors
     (Positive, Appenders.Appender_Class_Access, Appenders."=");
   use Appenders_Vector;
   protected type Lock_Type is
      entry Get;
      procedure Release;
   private
      Available : Boolean := True;
   end Lock_Type;
   type Logger_Type is new Types.Base_Type with record
      Current_Level : Level_Type := Off;
      Appenders_List : Vector;
      Lock : Lock_Type;
      Lock_Delay : Duration := 1.0;
      Depth : Natural;
      Events_Vector : Events.Event_Vectors.Vector;
   end record;
end Log4ada.Loggers;