A quick guide to log messages using irssi. Made this guide to record Edgy1’s IRC.

Install irssi:

$  sudo apt install irssi

Open irssi

$ irssi

Execute the following on the irssi window:

/set nick nick
/set real_name John doe
/set user_name nick
/server add -auto -network edgy1net irc.edgy1.net
/network add -autosendcmd '^MSG NickServ identify nick pass' edgy1net
/channel add -auto #VineMine edgy1net
/set timestamp_format %Y-%m-%d %H:%M:%S%z
/set log_timestamp %Y-%m-%d %H:%M:%S%z
/set autolog on
/connect edgy1net
/join #VineMine
/layout save
/save
/quit

Notes:
nick is the nickname
irc.edgy1.net is the IRC Server
edgy1net is the servername (you can set this to any name)
pass is the password you used when registering with NickServ
#VineMine is the target channel name
The datetime format will be: 2021-03-08 10:57:50+0800, check the references for more information.

View the log file at: /home/$USERNAME/irclogs/<Server>/#CHANNELNAME

References:

https://edgy1.net/irc
https://irssi.org/documentation/settings/
https://wiki.archlinux.org/index.php/Irssi
https://irssi.org/documentation/help/network/

Except where otherwise noted, this work is licensed under Creative Commons Attribution-ShareAlike 4.0 International License (http://creativecommons.org/licenses/by-sa/4.0/).