Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduce a logging system supporting multiple severity levels, JSON formatting, and customizable prefixes and suffixes inspired by Dr. Stone. Includes random success and failure quotes to make logging more dynamic and engaging.
48 lines
1.9 KiB
Go
48 lines
1.9 KiB
Go
package stonelog
|
||
|
||
// characterSuccessQuoteSuffixes contains success quote suffixes by characters.
|
||
// characterFailQuoteSuffixes contains failure quote suffixes by characters.
|
||
var (
|
||
characterSuccessQuoteSuffixes = []string{
|
||
" // Senku: '10 BILLION POINTS FOR SCIENCE! REVIVAL SUCCESSFUL!'",
|
||
" // Senku: 'Mwa-ha-ha! Another victory for the Kingdom of Science!'",
|
||
" // Senku: 'E=mcΒ², baby! Thatβs how you optimize!'",
|
||
" // Senku: 'This experiment... is a 10 billion percent success!'",
|
||
|
||
" // Chrome: 'SO BADASS! SENKU, YOUβRE A GENIUS!'",
|
||
" // Chrome: 'HOLY CRAP, SCIENCE JUST PUNCHED THE SKY!'",
|
||
" // Chrome: 'WEβRE OFFICIALLY WIZARDS NOW!'",
|
||
|
||
" // Kohaku: 'Heh. Even I couldβve done that... maybe.'",
|
||
" // Kohaku: 'Science + fists = unstoppable!'",
|
||
|
||
" // Ryusui: 'NAVIGATION SUCCESSFUL! Time to monetize this!'",
|
||
" // Ryusui: 'Money canβt buy this... BUT IβLL TRY!'",
|
||
|
||
" // Kaseki: 'HOT BLOODED ENGINEERING... PERFECTED! (αα£α)Υ'",
|
||
" // Kaseki: 'IβLL CARVE A STATUE TO COMMEMORATE THIS MOMENT!'",
|
||
}
|
||
|
||
characterFailQuoteSuffixes = []string{
|
||
" // Senku: '10 BILLION REASONS TO FIX THIS... NOW.'",
|
||
" // Senku: 'This failure is... statistically impressive.'",
|
||
" // Senku: 'Mwa-ha-ha... *nervous laugh*... reboot everything.'",
|
||
|
||
" // Chrome: 'NOT BADASS! NOT BADASS AT ALL! (β₯οΉβ₯)'",
|
||
" // Chrome: 'MY BRAIN HURTS! IS THIS HOW SCIENCE WORKS?!'",
|
||
|
||
" // Kohaku: 'Ugh. Can I just smash the server with a rock?'",
|
||
" // Kohaku: 'Senku, your science is broken. FIX IT.'",
|
||
|
||
" // Gen: 'Ah~... so this is how the world ends~?'",
|
||
" // Gen: 'Mentally calculating... yep, weβre doomed~.'",
|
||
|
||
" // Tsukasa: '...This is why I opposed technology.'",
|
||
|
||
" // Kaseki: 'BACK IN MY DAY, ERRORS WERE FIXED WITH A HAMMER! π¨'",
|
||
" // Kaseki: 'MY SOUL... IT BURNS WITH DEBUGGING RAGE!!!'",
|
||
|
||
" // Francois: 'Iβll prepare a funeral tea for the deceased process.'",
|
||
}
|
||
)
|