#Help to create a log for error in the program

1 messages · Page 1 of 1 (latest)

sturdy lagoon
#

Hi, i like to make a class called "MyLogger", that class have to grab an error when a user of a different guild executes a command and for some reason it goes to an exception, i would like to get that error log and print it in my own guild instead of print it in the console of the program, but I don't know how to get access to the client inside of the class "MyLogger"... I don't know if i make me understand.

devout egret
#

can I see how you log errors?