File size: 338 Bytes
9c400b9
 
 
d068566
9c400b9
 
 
d068566
9c400b9
6a7abb7
d068566
9c400b9
d068566
 
 
9c400b9
d068566
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from dotenv import load_dotenv

import logfire as lf

load_dotenv()

lf.configure(
    token=os.getenv('LOGFIRE_TOKEN'),
    # pydantic_plugin=lf.PydanticPlugin(record='all'),
    console=lf.ConsoleOptions(min_log_level= os.getenv('LOG_LEVEL'))
)
lf.instrument_redis()
lf.instrument_httpx()
lf.instrument_requests()

logger = lf