File size: 293 Bytes
dde4d03
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Import Logly
import os

from logly import Logly

logly = Logly()

# Set the default file path and maximum file size
logly.set_default_max_file_size(50)
logger = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../log.txt")
logly.set_default_file_path(logger)


logly.start_logging()