Tagged Questions
1
vote
1answer
151 views
Strategies to help deal with JavaScript application error logging
I'm currently developing a medium-sized JavaScript (RightJS+Canvas) application. It's pretty close to getting deployed on larger scale.
As we all know users tend to come by the weirdest issues. They ...
0
votes
0answers
9 views
How to Create Singleton Time Logger in jsUnity
I'm trying to create a script via jsUnity that logs how much time it takes for a process to complete.
I'm new to javascript and I'd appreciate if someone could tell me where I went wrong. The object ...
199
votes
16answers
139k views
What happened to console.log in IE8?
According to this post it was in the beta, but it's not in the release?
1
vote
3answers
533 views
User Activity Tracking or Logging with javascript
Is it possible to track every action of a user on a webpage and creating log of it? The idea is to transfer log of user actions to server via AJAX and saving it. On each event for each element I can ...
0
votes
2answers
42 views
How to print out object properties within for-in loop?
I'm getting a list of objects from an API which looks like this:
{
"results": [
{
"date": "2014-09-25 19:00:00",
"title": "Hitjeskanon"
},
{
"date": "2014-09-25 ...
0
votes
2answers
50 views
How to use NanoHTTPD to show log file
I have written a java desktop application that accepts http requests using embedded NanoHTTPD web server https://github.com/NanoHttpd/nanohttpd, after receiving http request my desktop application ...
0
votes
1answer
11 views
creating a log with append
need to create a log of messages where the message be saved along with the time.
I have this code, but the acresentar a new message is deleted the old and replaced by the new.
var textons = ...
0
votes
1answer
58 views
Javascript console output debug verbosity in Visual Studio 2013
I am developing a WP8 app, when I run the emulator that use JS code, the console.log is only shown but error and warn aren't.
There are the commands
console.log('This line works');
...
0
votes
1answer
16 views
capserjs utils.dump logging “[object Object]”
I have this in my Client Side code:
console.log('login', S.loginData)
and this in my casperjs test
casper.on('remote.message', function(msg) {
utils.dump(msg)
})
the console output is ...
24
votes
7answers
6k views
console.log wrapper that keeps line numbers and supports most methods?
I am currently searching for a console.log wrapper that handles following things:
Keeping the recorded line number and file name of the log statement intact
Provides access to all log severity ...
0
votes
1answer
13 views
How to write to Heroku's log from Javascript in a Rails app?
I have a Rails app running on Heroku, and I am wondering if there is a way to write to the log from Javascript.
Heroku's documentation says anything written to standard out (stdout) or standard error ...
0
votes
1answer
15 views
Browser compatibility of console JavaScript
I am using console.log, console.debug, console.info and console.warn. I din't find any notice about the browser compatibility of this console-function. Which browser do exactly support what kind of ...
1
vote
0answers
22 views
Intercept console.log but keep stack
I know its easy to intercept a function in js, among other ways:
console.log = (function () {
var log = console.log;
return function () {
alert(arguments);
log.apply(console, arguments);
...
1
vote
2answers
45 views
How would one monitor JavaScript execution in a web browser programmatically?
I would like to be able to know when arbitrary JavaScript successfully executes a command in a web browser. The medium doesn't matter, it could be a log, stack trace, event signal, it just has to be ...
0
votes
0answers
14 views
Node verbose logging
I am working on a new Node module and am trying to programmatically look for the verbose and print console.logs based on that idea.
My current solution grabs the arguments and generates a boolean:
...
0
votes
0answers
27 views
How to get log files for each time a browser runs?
I am automating some test cases using Selenium. I had used the Selenium functionality to get browser console logs, but these console logs don't contain JavaScript logs and it is not supported by ...
0
votes
0answers
12 views
log4js with fileappender in express app errorhandler doesn't work
Problem
I have a node.js express app with log4js configured.
Running the app in browser (this works normally) calls error middleware because i do a next(err) inside the matching router.
What happend
...
0
votes
1answer
17 views
Define a new console.log and desactivate the orginal one
I would like to create a variable which do exactly the same as console.log and deactivate the original console.log.
newLog('hello world'); // Should be displayed
console.log('hello world'); // Should ...
10
votes
11answers
15k views
how to see phonegap javascript log messages on xcode console
I am trying to develop a basic hello world application with phonegap on Xcode. But i can not see the log messages on Xcode console. I have tried console.log and debug.log but they did not worked for ...
1
vote
1answer
1k views
How to use logging mechanism efficiently?
I am using log4javascript to log and track the issues in my JavaScript code. I have seen similar logging aids before but I am having difficulty in understanding how each of these log levels should be ...
1
vote
2answers
92 views
How to exclude a log4js category from being logged to the default appenders
I'm using node-log4js.
(it's log4JS, not log4J!)
I thought of the loggers 'categories' to be just like the Strings you put in Log4J into the constructor of a logger (normally you put your fqn class ...
123
votes
8answers
53k views
Does IE9 support console.log, and is it a real function?
In which circumstances is window.console.log defined in Internet Explorer 9?
Even when window.console.log is defined, window.console.log.apply and window.console.log.call are undefined. Why is this?
...
2
votes
1answer
37 views
Is there someway to disable all firebase logging to console?
I have created some unit tests for my firebase security rules. Part of this testing is trying to do illegal operations and asserting that they fail.
My problem has to do with noise; when I run the ...
0
votes
1answer
19 views
Logging objects with certain properties
How can i log all objects with certain properties with the browsers' built-in development tools? For instace let's say i'd like to log any object with a width > 1000px, a specific css-property or ...
1
vote
1answer
68 views
Expressjs Morgan dynamically format the logs
Attempting to change the format of morgan's logging through the application run time.
The value will change pending on some remote value in a database and I would like morgan's output to change as a ...
47
votes
9answers
12k views
Logging Clientside JavaScript Errors on Server [closed]
Im running a ASP.NET Site where I have problems to find some JavaScript Errors just with manual testing.
Is there a possibility to catch all JavaScript Errors on the Clientside and log them on the ...
14
votes
4answers
6k views
Log javascript error
I want to log all JS errors in my project during the beta-testing time. Now I do it in the following way:
window.onerror = myErrHandler;
function myErrHandler(message, url, line)
{
$.ajax({
...
0
votes
0answers
46 views
NodeJS type error using Imap when logging
I don't know why but suddenly, everytime I'm trying to log in on my app I get the following error :
.\node_modules\imap\lib\Connection.js:206
var type = self._curReq.type;
TypeError: Cannot read ...
2
votes
1answer
31 views
How do I turn off logging beforeSave afterSave hooks in parse
How do I turn off logging beforeSave afterSave, and other cloud hooks in Parse. I have lots of logging going on that I do not want to see.
beforeSave and afterSave hooks show ALL their inputs and ...
0
votes
1answer
31 views
How do I log a message from Javascript called by Camel?
I am calling a Javascript file from Apache Camel XML DSL running inside Apache ServiceMix as follows:
<endpoint id="myJavascript" uri="language:javascript:file:data/myJavascript.js"/>
...
...
1
vote
2answers
47 views
Regex match skipping first match
So I have a certain log file:
Jul 07, 2014 12:56:06 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jul 07, 2014 12:56:07 AM ...
1
vote
2answers
24 views
Regex Matching Wrong Data
So here is my link:
http://regex101.com/r/sL4eR0/5
For some reason, it is not matching the data I have inputted correctly. I am assuming it is because of the first matching group since it matches ...
1
vote
4answers
709 views
Javascript Console.log Not working in Chrome, or Firefox
I am doing a very simple:
console.log("Testing");
along with :
alert("testing");
The Alert works (so I know the javascript is working) but I'm unable to see the log. When I use Firefox I get the ...
0
votes
0answers
89 views
Retrieving form data Node.js
Jade file:
form(method="post", action="/upload", enctype="multipart/form-data")
input(type="file", name="logName")
input#promptNumErrors(type="number", name="numErr", placeholder="Number ...
0
votes
0answers
67 views
Android : logging to Facebook from javascript code error
I have a web app built in a WebView inside my Android app.
From the web app, I want to connect to Facebook using the FB JS SDK.
So from the JS side, I am calling this from an iframe (deployed on the ...
0
votes
0answers
22 views
Efficient logging in JS
Is there a way in js to make logging more efficient , without calling methods when not necessary
I would use Macros in C++ for this.
lets say I have a logger and I do
log('Warning', 'this is the ...
0
votes
1answer
48 views
Cannot read “path” property of undefined Nodejs
Here is my jade file
form(method="post", action="/upload", enctype="multipart/form-data")
input(type="file", name="logName")
button(type="submit") Upload
And my index.js file
/* GET ...
0
votes
0answers
33 views
How to enable logging via console.log in Safari Web Inspector?
Console.log seems to be not working in Safari 7.04 Web Inspector. I use it directly in js-code in iOS application via UIWebView. Also I tried to run in debugger of Web Inspector. Console output ...
0
votes
2answers
77 views
Why is log4js creating an empty file but never putting messages into it?
log4js creates an empty file. I've looked at the answers to the (many) other times this happens to people on SO, but none seem relevant to me. Here is my code:
// Configure logging.
...
6
votes
2answers
4k views
Chrome/Firefox console.log always prepends a line saying undefined
Every time console.log is executed a line saying undefined is appended to the output log.
Happens in both Firefox and Chrome on Windows and Linux.
0
votes
2answers
17 views
Capturing Log string in Regex
So I have this log string where I need to capture the time, class, status, and log message.
Jun 18, 2014 5:50:26 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root ...
0
votes
1answer
16 views
How to do Javascript event driven mouse logging?
I have seen some snippets to get the mouse position and read a bit about jquery-one. Would someone please make or show me an example of detecting the position of the mouse whenever it is moved and ...
0
votes
1answer
19 views
How can I print an Exception stacktrace on javascript?
My function acctualy manages some envolved exceptions. Layer 1 re-throws the exception on layer 2. but it doesn't matter...
my question is simple this works:
throw {
name:"RangeWithValues",
...
0
votes
1answer
26 views
Handling elements in an array
So I have an array dubbed match where match[0] =
[2014-05-30 15:21:20,781] DEBUG [scheduler-4] (DiamondSchedulerRunner.java:41) Current node is not a manager of:publishEmail in tenant:0
[2014-05-30 ...
0
votes
1answer
453 views
Morgan Logger with Express.js only logging failed requests
I'm using Morgan with Express.js and I think I have a problem with my middleware because Morgan is only logging requests returning error 302 (redirected), which is occurring when my middleware catches ...
0
votes
0answers
26 views
Outputting most recent messages, file reading - Javascript
var count = reader.result.match(/(\]\sERROR\s\[)/g);
// Checks to see if there does exist an ERROR message in the log file
if (count === null) {
document.getElementById("writeHere").innerHTML += ...
0
votes
1answer
36 views
Javascript Facebook SDK: how to really log out?
First of all: I'm aware that there's plenty of questions about the same topic, but none of them did the trick for me (I've already been like 3 days trying to get this working)...
I'm working on a ...
2
votes
2answers
6k views
logging system for nodejs and node-worker
nodejs logging system, I want a beautiful console logging and also can save to log file, and also fast, async will be better.
The most difficult is , node-worker, which use std io to communicate with ...
0
votes
0answers
8 views
Emulate 'less +F' on a web page?
I'm looking for a way to display a slice or portion of a potentially very large log file into a web page. New lines appended to the log would be displayed if the user was already at the bottom, ...
0
votes
0answers
35 views
Javascript error swallowed in Dojo
I'm using Dojo 1.8.1, and it often happens that in case of uncaught reference errors (eg: access to non existing function / variables / members of an object) the script will silently fail without any ...