You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/05/27 15:37:18 UTC

[GitHub] [incubator-superset] tooptoop4 opened a new issue #9928: timestamp is not prefixed on log messages

tooptoop4 opened a new issue #9928:
URL: https://github.com/apache/incubator-superset/issues/9928


   my startup command is:
   
   /usr/bin/python3 /usr/local/bin/gunicorn -w 4 -k gevent --timeout 300 -b 0.0.0.0:8786 --limit-request-line 0 --limit-request-field_size 0 superset.app:create_app() --access-logfile /home/ec2-user/superset/logs/access.log --error-logfile /home/ec2-user/superset/logs/err.log
   
   my config.py contains
   ```
   LOGGING_CONFIGURATOR = DefaultLoggingConfigurator()
   
   # Console Log Settings
   
   LOG_FORMAT = "%(asctime)s:%(levelname)s:%(name)s:%(message)s"
   #todo? info?
   LOG_LEVEL = "DEBUG"
   
   # ---------------------------------------------------
   # Enable Time Rotate Log Handler
   # ---------------------------------------------------
   # LOG_LEVEL = DEBUG, INFO, WARNING, ERROR, CRITICAL
   
   ENABLE_TIME_ROTATE = True
   TIME_ROTATE_LOG_LEVEL = "DEBUG"
   #FILENAME = os.path.join(DATA_DIR, "superset.log")
   FILENAME = '/home/ec2-user/superset/logs/superset.log'
   ROLLOVER = "midnight"
   INTERVAL = 1
   BACKUP_COUNT = 2
   
   # Custom logger for auditing queries. This can be used to send ran queries to a
   # structured immutable store for auditing purposes. The function is called for
   # every query ran, in both SQL Lab and charts/dashboards.
   # def QUERY_LOGGER(
   #     database,
   #     query,
   #     schema=None,
   #     user=None,
   #     client=None,
   #     security_manager=None,
   # ):
   #     pass
   QUERY_LOGGER = None
   ```
   
   but lines in /home/ec2-user/superset/logs/superset.log are not prefixed with a timestamp


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] bkyryliuk commented on issue #9928: timestamp is not prefixed on log messages

Posted by GitBox <gi...@apache.org>.
bkyryliuk commented on issue #9928:
URL: https://github.com/apache/incubator-superset/issues/9928#issuecomment-692170606


   I saw smth similar, curious to learn about the solution.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #9928: timestamp is not prefixed on log messages

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9928:
URL: https://github.com/apache/incubator-superset/issues/9928#issuecomment-691699385


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] tooptoop4 commented on issue #9928: timestamp is not prefixed on log messages

Posted by GitBox <gi...@apache.org>.
tooptoop4 commented on issue #9928:
URL: https://github.com/apache/incubator-superset/issues/9928#issuecomment-657787626


   any idea @mistercrunch ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org