Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

JPOS Turn off Loggin Iso Server

79 views
Skip to first unread message

pgu...@gmail.com

unread,
Nov 6, 2024, 1:04:37 PM11/6/24
to jPOS Users
Can u assist with how to turn of the Iso-server logs this is my configuration file 


<?xml version="1.0" ?>
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="iso-server-##-integration" realm="iso-server-##-integration">
<attr name="port" type="java.lang.Integer">47535</attr>
<attr name="maxSessions" type="java.lang.Integer">1000</attr>

<channel class="org.jpos.iso.channel.PostChannel"
packager="zw.steward.bridge.packager.PostPackager"
type="server"
logger="Q2"
realm="iso-server-##-integration">
<property name="timeout" value="90000"/>
</channel>
<request-listener class="zw.##.##.##.IncomingListener" logger="Q2" realm="incoming-request-listener-##-integration">
<property name="queue" value="TXNMGR" />
<property name="ctx.DESTINATION" value="INTEGRATION-##" />
<property name="ctx.continuations" value="true" />
</request-listener>
</server>


Mark Salter

unread,
Nov 6, 2024, 1:09:15 PM11/6/24
to jpos-...@googlegroups.com

Either this configuration is not active or you have code changes.

What version of jpos,  and can you share a sample of the logged data you are seeing?

-- 
Mark



-------- Original Message --------
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/af874b94-9d43-4ecc-8610-a4a069c809f8n%40googlegroups.com.
signature.asc

pgu...@gmail.com

unread,
Nov 6, 2024, 1:30:20 PM11/6/24
to jPOS Users

JPOS version is  2.1.3

<dependency>
            <groupId>org.jpos</groupId>
            <artifactId>jpos</artifactId>
            <version>2.1.3</version>
        </dependency> and example logs are 

<log realm="iso-server-###-main/#####:51222" at="2024-11-06T20:29:33.251" lifespan="60014ms">
  <receive>
    <isomsg direction="incoming">
      <!-- zw.steward.bridge.packager.PostPackager -->
      <field id="0" value="0800"/>
      <field id="7" value="1106183027"/>
      <field id="11" value="390052"/>
      <field id="12" value="203027"/>
      <field id="13" value="1106"/>
      <field id="70" value="301"/>
    </isomsg>
  </receive>
</log>
<log realm="iso-server-##-main/###:51222" at="2024-11-06T20:29:33.260">
  <send>
    <isomsg direction="outgoing">
      <!-- zw.steward.bridge.packager.PostPackager -->
      <field id="0" value="0810"/>
      <field id="7" value="1106183027"/>
      <field id="11" value="390052"/>
      <field id="12" value="203027"/>
      <field id="13" value="1106"/>
      <field id="39" value="00"/>
      <field id="70" value="301"/>
    </isomsg>
  </send>
</log>

Mark Salter

unread,
Nov 6, 2024, 2:12:30 PM11/6/24
to jpos-...@googlegroups.com

Seems to me your packager might be producing that.

-- 
Mark



-------- Original Message --------
signature.asc

Alejandro Revilla

unread,
Nov 6, 2024, 2:21:10 PM11/6/24
to jpos-...@googlegroups.com
You can define a new logger, called for example NOLOG, with no listeners. Then assign the NOLOG logger to your QBean.



Andrés Alcarraz

unread,
Nov 6, 2024, 2:39:48 PM11/6/24
to jpos-...@googlegroups.com

Doesn't just removing the logger= do the trick?

----
Enviado desde mi móvil, disculpas por la brevedad.

Sent from my cellphone, I apologize for the brevity.

Andrés Alcarraz.

Alejandro Revilla

unread,
Nov 6, 2024, 2:47:58 PM11/6/24
to jpos-...@googlegroups.com
I need to check, but if I recall correctly, there are some components that default to the "Q2" logger unless a logger is configured, that's why I suggested the sure fire workaround.




pgu...@gmail.com

unread,
Nov 6, 2024, 2:49:13 PM11/6/24
to jPOS Users
thanks guys will try the nologger solution and removing the logger and give feedback 

kes...@phsolutions.in

unread,
Nov 7, 2024, 2:00:23 AM11/7/24
to jPOS Users
Alejandro is absolutely right and has given the best solution.

Look at org.jpos.q2.Q2.java code. Some relevant snippets here:

****************************
public static final String LOGGER_NAME         = "Q2";
public static final String LOGGER_CONFIG       = "00_logger.xml";
.......
private Log log;
private boolean hasSystemLogger;
........
public Log getLog () {
        if (log == null) {
            Logger logger = Logger.getLogger (LOGGER_NAME);
            if (!hasSystemLogger && !logger.hasListeners() && cli == null)
                logger.addListener (new SimpleLogListener (System.out));
            log = new Log (logger, REALM);
        }
        return log;
    }
***********************************

Mark Salter

unread,
Nov 7, 2024, 3:48:08 AM11/7/24
to jpos-...@googlegroups.com

Good you know, I was thinking log activity was only on 'debug', hence thinking something in your own Packager might be in play.

-- 
Mark



-------- Original Message --------
signature.asc

Prince Gujie

unread,
Nov 14, 2024, 11:55:09 AM11/14/24
to jpos-...@googlegroups.com
Defining a new logger without listeners worked just fine thank you 

<?xml version="1.0" encoding="UTF-8"?>
<logger name="NOLOG" class="org.jpos.q2.qbean.LoggerAdaptor">
</logger>

Reply all
Reply to author
Forward
0 new messages