Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Standard loggin while using Nipyapi

Standard loggin while using Nipyapi

New Contributor

Hey Guys -

 

Currently I'm trying to log into a file using standard logging library in python while using nipyapi library (https://github.com/Chaffelson/nipyapi/). Can somebody help if you're able to figure on how to do this?

 

Version I'm currently on:

  • Nipyapi version: 0.14.3
  • NiFi version: 1.9.0
  • Python version: 3.6.3
  • Operating System: RHEL 7.7

Code to replicate this:

import nipyapi

import logging

logging.basicConfig(filename="/tmp/execution.log",level=logging.INFO,format='%(asctime)s:%(levelname)s:%(message)s')

logging.info('hello')

 

Thanks in advance

 

@dchaffey @MattWho @jtaras 

Don't have an account?
Coming from Hortonworks? Activate your account here