Logger icon indicating copy to clipboard operation
Logger copied to clipboard

Would like to have logger.emtpy_line; and logger.empty_line(3)

Open JuergenSchuster opened this issue 8 years ago • 7 comments

Enhancement. Now I have to do logger.log(' '); not so nice to read

JuergenSchuster avatar Oct 18 '16 10:10 JuergenSchuster

I'd do something like logger.log('HEARTBEAT'); so it doesn't look like an error.

jeffreykemp avatar Oct 18 '16 12:10 jeffreykemp

@JuergenSchuster I'll need a good reason and many up votes to add such a command to the API when you can do logger.log(null). Can you please provide the use case?

For now I'll tag it as a future.

martindsouza avatar Oct 18 '16 13:10 martindsouza

@martindsouza It's not a big deal. I think we agree to have blank lines to structure your logging outputs.

logger.log(null) is not an option, people need to think about it, what this actually does (remember there are normal people programming PL/SQL too :-)

logger.log(' '); Everybody understands immediately, but it is not nice.

logger.empty_lines(3); would be fantastic to read :-)

JuergenSchuster avatar Oct 19 '16 09:10 JuergenSchuster

@JuergenSchuster If we du have an empty_lines API how do we specify the level it gets logged at?

martindsouza avatar Oct 19 '16 11:10 martindsouza

@martindsouza Debug level only

JuergenSchuster avatar Oct 19 '16 13:10 JuergenSchuster

@JuergenSchuster I fail to see why one would like to log "nothing". Is the purpose to record a wall clock time of the program execution ? But the logger have dedicated timing methods.

janihur avatar Oct 19 '16 16:10 janihur

Or is it to add breaks in the log for reporting/printing? In which case I'd do logger.log('--');

However, I think the whole purpose of a debug log is to log something.

jeffreykemp avatar Oct 20 '16 00:10 jeffreykemp