I have a large document that I have split into several separate documents. I have one main.tex file and several file_i.tex files which are included into main.tex using the \input-command. It also happens that this including is nested, i.e. that one of file_i.tex files included another file.
The log file main.log that is generated looks something like this:
blabla
(main.tex
blabla
blabla
(file_1.tex
blabla
)
(file_2.tex
blablabla
(file_2_1.tex)
)
blabla
)
I wonder if there exists some way/script that splits this file into e.g. part_main.log, part_file_1.log, part_file_2.log and part_file_2_1.log.
It doesn't seem to difficult to write an ad-hoc script to do this, but it also seems such a common problem, that I would expect some well-tested scripts to already be available.