logging

Logs (both development and product) and server output not working rails 3

假如想象 提交于 2021-01-27 22:54:20
问题 the development.log in my application has never worked since the beginning of creating the application. I pull other projects from github, run them and the logs work perfectly fine. the SQL queries don't get logged to the server console either. I usually just see something like Started GET "/admins/queued_users/3" for 127.0.0.1 at 2011-07-29 15:16:46 -0700 Processing by Admins::QueuedUsersController#show as HTML Parameters: {"id"=>"3"} Rendered admins/queued_users/show.html.erb within layouts

Pure console Android Application?

拜拜、爱过 提交于 2021-01-27 21:08:02
问题 Is it possible to create a pure console android application that will run in the android emulator? I mean we can run classic desktop Java application that utilize System.out.println for console output, so I don't see why we are not able to do the same for Android via the android.util.Log classes. The advantages of doing it on an emulator will be that gives access to the desired functionality implemented by Android Java classes. Perhaps a dex file without the Application , Activity class and

Disable IP address logging Rails

梦想与她 提交于 2021-01-27 15:51:10
问题 I am trying to disable logging of IP addresses while handling the request. But I am not able find a way to do this. I want to disable logging of IP for limited portion of my app where user is not yet authenticated. So my questions is How to disable logging of IP in rails log for specific pages(so the IP will not be saved in any log) I am using Rails 3.2.17 EDIT: Here is sample log (from environment.log) Started GET "/my_path" for 192.168.0.109 at 2014-03-28 11:53:20 +0530 I do not want to

angular errors log send to elasticsearch

左心房为你撑大大i 提交于 2021-01-27 13:14:52
问题 I have an angular project version 10.0.2 I want to log all errors on developer console to elastic search. When I catch an error on the global error handler my handler inside like this. export class GlobalErrorHandlerService extends ErrorHandler { constructor(private log: LogService) { super(); } handleError(error: any) { var client = new Client(); if (error instanceof HttpErrorResponse) { this.log.level = LogLevel.Error; this.log.error("API/Back-End Proccess request error " + JSON.stringify

Django logging with user/ip

假如想象 提交于 2021-01-27 12:54:56
问题 I am using the "logging" module to log a very large amount of messages. I would like to add "user" (request.user) to the log. But while it is available in the view function, I don't want to pass it to all helpers. Does anyone know a way to this ? [I was thinking of maybe somehow walking the trace until I find a function with "request" in its args] Thanks in advance 回答1: The hacky way to do this is to stick the request (or request.user) in threadlocal storage. The correct and maintainable way

Azure WebJobs: Can't find Trace logging

好久不见. 提交于 2021-01-27 07:51:35
问题 I've followed the instructions on this Microsoft webpage for logging messages from an Azure WebJob, but none of my messages appear in the log. In my WebJob I write logging messages using Trace.TraceInformation("blah blah blah"); In the configuration file's application diagnostics section I have blob storage logging turned on with the "Verbose" option. Log files are being created (though I sometimes have to wait several minutes - in one case until the following morning - until the logs appear

Azure WebJobs: Can't find Trace logging

核能气质少年 提交于 2021-01-27 07:48:16
问题 I've followed the instructions on this Microsoft webpage for logging messages from an Azure WebJob, but none of my messages appear in the log. In my WebJob I write logging messages using Trace.TraceInformation("blah blah blah"); In the configuration file's application diagnostics section I have blob storage logging turned on with the "Verbose" option. Log files are being created (though I sometimes have to wait several minutes - in one case until the following morning - until the logs appear

Where are the log files located in Moodle?

丶灬走出姿态 提交于 2021-01-27 07:33:14
问题 I need to locate where the logging data is stored in Moodle. In the Moodle database there is a table called 'log' where log data is stored. However, I can get Moodle reports showing logging data that is definitely NOT stored in this table. I am using Moodle version 2.7.8. 回答1: In the Moodle version I am using (2.7.8) you have three possibilities to log your data (called 'log stores'): Standard log : This is the default possibility. All the log data will be saved to the database table

Hide Scapy Warning Message IPv6

戏子无情 提交于 2021-01-27 07:30:34
问题 I tried multiple times to hide, but no success. Any help? I already tried - from scapy.all import * import logging logging.getLogger("scapy.runtime").setLevel(logging.ERROR) Still get the same warning on console. WARNING: No route found for IPv6 destination :: (no default route?) FYI, I'm using Scapy with Python 2.7 on OS Mavericks. 回答1: You need to import logging and adjust the settings for the logging message first. What's happening is you import scapy into your namespace, trigger the error

Hide Scapy Warning Message IPv6

喜欢而已 提交于 2021-01-27 07:29:20
问题 I tried multiple times to hide, but no success. Any help? I already tried - from scapy.all import * import logging logging.getLogger("scapy.runtime").setLevel(logging.ERROR) Still get the same warning on console. WARNING: No route found for IPv6 destination :: (no default route?) FYI, I'm using Scapy with Python 2.7 on OS Mavericks. 回答1: You need to import logging and adjust the settings for the logging message first. What's happening is you import scapy into your namespace, trigger the error