hapi-log is an example application to demonstrate using @hapi/log with Graylog and pino. There is a custom pino logger that shows how to build a custom logger for @hapi/log. Also, the application shows how to integrate @hapi/log with Graylog.
-
docker-compose up -d -
Launch a web browser and go to http://0.0.0.0:9000
-
Login with admin/admin credentials
-
Create a new System -> Inputs for GELF UDP
-
Browse to http://localhost:8080 and http://localhost:8080/err
-
Use the graylog search to view the logs from the server