Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit a1e0b73

Browse files
committed
_log()
Not finished
1 parent e19ca63 commit a1e0b73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vrcpy/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@
44
from vrcpy import objects
55
from vrcpy import aobjects
66

7+
from datetime import datetime
8+
79
import urllib
810
import base64
911
import time
1012
import json
1113

1214
class Client:
1315

16+
# Log
17+
18+
def _log(self, log): # TODO: Finish logging, also, dunno how I'm gonna do this yet
19+
dt = datetime.now().strftime("%d/%m - %H:%M:%S")
20+
21+
if self.log_to_console:
22+
print("[%s] %s" % dt, log)
23+
1424
# User calls
1525

1626
def fetch_me(self):

0 commit comments

Comments
 (0)