Project

General

Profile

Quotation Marks in Log Messages

Added by Nicole King almost 8 years ago

Why do log messages have quotation marks embedded in the text, doubled up?

I want to display

"CREATE TYPE "ScheduledTaskType" AS ENUM ('Invalid', 'Backup');"

in the log. I'm OK with the quotation marks at the beginning and end, though I'd rather not have them.

Instead I get

"CREATE TYPE ""ScheduledTaskType"" AS ENUM ('Invalid', 'Backup');"

Note that the embedded quotation marks have been duplicated. Grrr!!!

Nicole


Replies (1)

RE: Quotation Marks in Log Messages - Added by Wim Dumon almost 8 years ago

This is specified in the extended log format (see https://www.w3.org/TR/WD-logfile.html):

If a string contains a quotation character the character is repeated.

Wim.

    (1-1/1)