feat: logs filter (#95)

This commit is contained in:
vladopajic
2026-08-01 20:22:42 +02:00
committed by GitHub
parent ad00876e9d
commit a31c40d65c
29 changed files with 231 additions and 52 deletions
+9 -2
View File
@@ -22,10 +22,15 @@
#include <string>
#include "plugin.h"
/// The main class we work with is `Libp2pModuleImpl`. Let's create one with
/// default options:
int main()
{
printf("=== Tutorial 1: Creating and Starting a libp2p Node ===\n\n");
setLogLevel(LogLevel::Fatal);
/// The main class we work with is `Libp2pModuleImpl`. Let's create one with
/// default options:
// Create a libp2p node with default configuration.
// By default it listens on 127.0.0.1 with a random port (tcp/0).
Libp2pModuleImpl node;
@@ -95,6 +100,8 @@ int main()
node.stop();
printf("Node stopped\n");
printf("\n=== Tutorial 1 Complete ===\n");
return 0;
}