So there are "system" logs coming from Crawlee,, these will always use currently set Logger, which will always use the same method signatures and you cannot do much about it.
If you want to provide custom parameters to log, that is what the
data
parameter is for, but you need to always pass them by yourself.
log.info(`MY log message`, {
myData1: 'data1',
myData2: 'data2'
})
I am afraid that there is no way for JS/TypeScript to provide information about line number, or name of the parent method from which they were called etc.
I originally thought, that you are just interested in a way the logs are formatted