Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 49ae0fe

Browse files
committed
add(log): add logging feature docs
1 parent 140c6dd commit 49ae0fe

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/docs/features/log.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Logging
3+
description: Enabling logging in Nitro.
4+
keywords: [Nitro, log, Jan, fast inference, inference server, local AI, large language model, OpenAI compatible, open source, llama]
5+
---
6+
7+
8+
## Enabling Logging
9+
10+
Nitro's logging feature can be activated by specifying a log folder. This is crucial for monitoring and troubleshooting.
11+
12+
## Setting Up Logging
13+
14+
To configure logging, you need to specify the path to the log folder. Use the following command to set it up:
15+
16+
```bash title="Config logging" {5}
17+
curl http://localhost:3928/inferences/llamacpp/loadmodel \
18+
-H 'Content-Type: application/json' \
19+
-d '{
20+
"llama_model_path": "/path/to/your_model.gguf",
21+
"llama_log_folder": "/path/to/log/folder/"
22+
}'
23+
```
24+
25+
> **Note:** Ensure the log folder exists before running this command. If the specified folder does not exist, logs will default to your current directory.

docs/sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const sidebars = {
5151
"features/load-unload",
5252
"features/warmup",
5353
"features/prompt",
54+
"features/log"
5455
],
5556
},
5657
{

0 commit comments

Comments
 (0)