104 Commits

Author SHA1 Message Date
914e7a2020
added read mode to logFile creation 2023-01-21 21:09:48 +01:00
596d6aff9a
removing newline from logMessage 2022-12-11 17:59:43 +01:00
403cb396b6
added one byte to buffer allocation
see 875c3c34d90d2845325db2739233d9312f056785
2022-12-11 16:20:53 +01:00
3776ad5e02
added void parameter to every function without any parameters 2022-12-11 14:57:57 +01:00
f26945a841
added check if flags weren't changed to writeLog 2022-12-10 16:25:46 +01:00
59ba4c8d08
allocating logger-test's buffer with calloc
fucking Uninitialised value was created by a heap allocation
2022-12-10 15:27:35 +01:00
b4d1be73f9
fixed writeLog memory leak 2022-12-10 15:01:14 +01:00
afc9d97bbb
using inputFlags in logger 2022-12-09 19:00:37 +01:00
6cb9e09a87
implemented encryption in logger
NOTE: This was pretty big change, I hope everything is cool
2022-12-09 18:55:18 +01:00
799fc752b2
implemented logFlags-related stuff in logger-test 2022-12-09 17:50:14 +01:00
de6e0886ac
renamed loggerFlags to logFlags 2022-12-09 17:37:56 +01:00
5c76b768db
created getter & setter for loggerFlags 2022-12-09 17:35:21 +01:00
7a5e632f7a
added missing comment 2022-12-09 15:21:02 +01:00
f38e6e15f4
fixed 'ignoring return value' problem in symlink creation
see 215121f209f3e09a5ad3ce4fc5ed052d9d66708d
2022-12-09 15:13:59 +01:00
cd6600a83f
added latest log feature && simplified LOG_FORMATTING 2022-12-09 15:10:41 +01:00
215121f209
kind of fixed 'ignoring return value' problem
saying I bypassed compiler would sound weird, so yeah... 🤠
2022-12-09 14:09:15 +01:00
fd6aa19eba
added proper expression for comparing write & fread return values
still not complete tho
2022-12-07 17:30:47 +01:00
8df7a56095
fixed what I fucked up last commit 2022-12-06 18:30:49 +01:00
0cacbcf174
patched unused-result error
hopefully
2022-12-06 18:22:58 +01:00
ee886f0237
fixed possible segfault in writeLog
This would happen if initLogger returned INVALID_FILE and you still tried using writeLog
2022-12-06 18:14:34 +01:00
385f39b05d
preventing from [-Werror=unused-result] (3#) 2022-12-04 19:49:06 +01:00
d94a65e50d
preventing from [-Werror=unused-result] (2#) 2022-12-04 19:46:37 +01:00
67170b2635
made logger-test much better
it now reads content of log file
2022-12-04 19:24:06 +01:00
054c7647a1
fixed logFile memory leak 2022-12-04 19:19:41 +01:00
731b33e24e
implemented all logFile changes in logger-test 2022-12-04 19:18:39 +01:00
cfdcad1c9b
removed needed pointer deallocation 2022-12-04 19:18:04 +01:00
2401612ccf
updated utils.c 2022-12-04 19:16:33 +01:00
e2c5791dc7
implemented logFile type in logger.c 2022-12-04 19:13:05 +01:00
f71647e0ff
added license at top of every file
I mean, the files where it is possible
2022-12-04 18:55:13 +01:00
8d136b726f
implemented last commit; removed todo 2022-11-23 19:52:03 +01:00
488a59db56
fixed filePath allocation syze 2022-11-23 19:45:07 +01:00
5054284370
fixed log folder counting bug
gonna make this variable, don't worry
2022-11-23 19:44:35 +01:00
8c4b888a88
renamed logger-test's test variable to logFile 2022-11-22 18:57:53 +01:00
3c17674cdb
added comments to logger-test 2022-11-22 18:57:06 +01:00
28a38e5290
moved logger-test's directory to WRITE_DIR flag 2022-11-22 18:56:10 +01:00
2c379872d9
moved logger-test's write message to WRITE_MESSAGE flag 2022-11-22 18:55:34 +01:00
9fe1fbde66
added something intelligent to logger-test write message 2022-11-22 18:54:06 +01:00
48977c0fe1
added on byte to writeLog's buffer allocation
I mean... Valgrind told me to.
2022-11-22 18:50:41 +01:00
0f4492a611
added some *working* code into writeLog's body 2022-11-22 18:47:56 +01:00
8ee309fe7c
implemented writeLog in logger-test 2022-11-22 18:32:44 +01:00
95d5c8201f
added missing header file include
I thought it write() was in fcnttl

whoops
2022-11-22 18:30:55 +01:00
e5a4c21f6a
added test code into writeLog 2022-11-22 18:29:00 +01:00
f2b059da13
implemented deallocateLogger in logger-test 2022-11-22 18:19:47 +01:00
453a8a1cca
added code to deallocateLogger's body
just close function lmao
2022-11-22 18:19:21 +01:00
614d788350 implemented LOG_FORMATTING in logger 2022-11-21 12:08:37 +00:00
4a7f3ac3ab fixed logger's todo
and deallocated filePath
2022-11-21 11:58:10 +00:00
ddb5389916 implemented MAX_USAGE flag 2022-11-21 11:55:25 +00:00
6862a1815f added missing initLogger deallocation
I forgor
2022-11-21 11:53:53 +00:00
091fe43bb2
created some basic code for logs generation
I will make more variable etc. tomorrow
2022-11-18 19:54:33 +01:00
952c348e8e
added some *serious* test code into logger-test 2022-11-18 18:56:22 +01:00