Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Polish

Serwlety w tym API pozwalają logować wiadomości na serwerze za pomocą Loggera z

bliblioteki

biblioteki log4j. Można logować na następujących poziomach: error, warn, info, debug, trace. Każdy poziom posiada swój osobny serwlet.

Ścieżki do serwletów w zależności od poziomu logowania są następujące:

  • api/logger/error
  • api/logger/warn
  • api/logger/info
  • api/logger/debug
  • api/logger/trace

Wszystkie serwlety posiadają taką samą konfigurację:

Metoda: POST

Request Content-Typeapplication/json

Treść zapytania:

 Obiekt JSON zawierający parametry logowania. Definicja powinna zawierać następujące pola:

    • message - Wiadomość jaka ma zostać zalogowana
    • location - Lokalizacja miejsca, dla którego jest ta wiadomość. Może to być konkretny obszar aplikacji lub po prostu adres strony.

Odpowiedź: Brak

 

English

The servlets in this API allow you to log messages to the server using Logger from the log4j library. You can log at the following levels: error, warn, info, debug, trace. Each level has its own separate servlet.

The paths to the servlets according to the logging level are as follows:

  • api/logger/error
  • api/logger/warn
  • api/logger/info
  • api/logger/debug
  • api/logger/trace

All servlets have the same configuration:

Method: POST

Request Content-Typeapplication/json

Query Content:

 JSON object containing the logging parameters. The definition should contain the following fields:

    • message - The message to be logged in
    • location - The location of the site for which this message is. This can be a specific area of the application or simply the address of the page.

Answer: None