mirror of
https://github.com/logos-co/logos-libp2p-module.git
synced 2026-08-31 01:41:12 +00:00
feat: logs filter (#95)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user