Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOU7i-0007ex-O1 for pgsql-general@arkaria.postgresql.org; Thu, 31 May 2018 20:24:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fOU7h-00009V-Bs for pgsql-general@arkaria.postgresql.org; Thu, 31 May 2018 20:24:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOU7f-00009D-DD for pgsql-general@lists.postgresql.org; Thu, 31 May 2018 20:24:37 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOU7a-0006sp-R3 for pgsql-general@lists.postgresql.org; Thu, 31 May 2018 20:24:34 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B9F7021E67; Thu, 31 May 2018 16:24:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 31 May 2018 16:24:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=anu9KjNIVnFvlK2jRlTQIbGwSSLtR SbKJ/PTWlkRBqA=; b=USQo7NTAZ8suaST2FInexwy653y6a4p4AJWWOtmYfj/5U Hvwvm2qKHOpwEJgssdJjGwTZVtcUZ13Wln+X3EA0U5uztv+gOocMruU2sV0bWf8u Shte1cp7qKHPnLyN6XnqMI6/IZy9FGHzkh6TUKEzArBKCTNPjGIk+iI9Ug7b/r7H sTCeb1abHnBEc77WU+2DgKKrqxOwWsphB8bFE1s0JiRziclZUJg5+6kc9efiJINR lNKrZmQWCvRdo5IBRB/riWFursAGy46OcnyJVeFxLyihQ0ZDsCuQk706Q/ZkTRep fkKErrIkfWTh4m/SzdQSm47vp/AbnMglZmybIpilg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=anu9Kj NIVnFvlK2jRlTQIbGwSSLtRSbKJ/PTWlkRBqA=; b=cwc3nXGfPRN8ImrD/Sgw8Z AWv0yVoZmIETKPXdcAlcxo3JGmCOmr1W3fzmK0bJQQV+9g6+zJCEDubGIahKuupX RHOHN3xb+cqDB9t+oqecCYk81wzfN3tzhK+1vh2ML0IaKwr/cZi3HZU6rocwO4Ty KuJHT42zLeSwMAQibmLUHZuDGgiQP1QCd5XYq621N+bjIfORnpm523DkUt6OooVB Og6qxwKEB/C2ew/kHp429V9FQL2XYoNDzTM9/Cg09aNCra5I51r5E78jLjLRYJKh ruw9sHttCBr1vIo7SOmIlZnoC4DlmAHZaS5jmHuv2OTpj32OIgua/VJoLvRcrBGg == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.159.209]) by mail.messagingengine.com (Postfix) with ESMTPA id 25E7A10273; Thu, 31 May 2018 16:24:29 -0400 (EDT) Subject: Re: now getting log messages! To: ib@ianbellsoftware.com, pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <2e48541b-1d40-cc03-8770-7f72ea4b029a@aklaver.com> Date: Thu, 31 May 2018 13:24:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/31/2018 01:03 PM, Ian Bell wrote: > Hello Adrian, > > Your suggestions have changed something and my messages are appearing in the log file. As per your suggestion, I enabled ' log_connections' and 'log_disconnections' and restarted the server. Hmm, again:) Changing log_connections, log_disconnections would not have enabled logging the 'log' messages. The server restart would be the likely trigger for catching the logging settings for client_min_messages and log_min_messages. What solicited the hmm was that in your first post you said you had restarted the server multiple times when changing the logging settings. Do you have more then one instance of Postgres running on this machine? If so maybe you where restarting the wrong server previously? > > I now have something to work with. In addition, I now know what to expect when attempting to log messages (I'm a SQL newbie). On that score the 'log' message level is one you need to be careful of as it ranks differently in the client versus in the log file: https://www.postgresql.org/docs/10/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHEN "client_min_messages (enum) Controls which message levels are sent to the client. Valid values are DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, LOG, NOTICE, WARNING, ERROR, FATAL, and PANIC. Each level includes all the levels that follow it. The later the level, the fewer messages are sent. The default is NOTICE. Note that LOG has a different rank here than in log_min_messages. log_min_messages (enum) Controls which message levels are written to the server log. Valid values are DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, INFO, NOTICE, WARNING, ERROR, LOG, FATAL, and PANIC. Each level includes all the levels that follow it. The later the level, the fewer messages are sent to the log. The default is WARNING. Note that LOG has a different rank here than in client_min_messages. Only superusers can change this setting. " > > Thank you for your help. > > Ian > > -- Adrian Klaver adrian.klaver@aklaver.com