aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: ef437654fe86e9532124c89ec5ee56a13cb5a154 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# clog
Simple logging library for C

If you want to save the logs to a file you can use `tee`:
```
someprogram | tee logfile.txt
```

The `-a` command line switch makes tee append to the file
rather than truncating in overwriting it:
```
echo -e "\n---------\nSEPERATOR\n---------\n" >> logfile.txt
someprogram | tee -a logfile.txt
```