Hi @shwethag,
Tag event scripts cannot print into the console. Instead, you have to print in the log of the Gateway:
logger = system.util.getLogger("myLogger")
logger.info("New Value for %s: %s:" %(tagPath,currentValue.value))
Note that currentValue is a "qualified value", so you need to specify you want to get the value as I did in the example above