Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6
This is the forum to discuss the Wrox book Professional XNA Game Programming: For Xbox 360 and Windows by Benjamin Nitschke; ISBN: 9780470126776
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 28th, 2007, 11:31 PM
Authorized User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: La Vergne, TN, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jnbutler
Default Can't get Log to write the Log.txt file

Hey Ben, I can't get the Log helper class to write the Log.txt file. In debug mode my message that a level in breakout has been completed writes to the output window in XNA but no Log.txt file gets created!
Is there a piece of code missing from the download examples?


jnbutler
__________________
jnbutler
  #2 (permalink)  
Old July 6th, 2007, 10:10 PM
Authorized User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: La Vergne, TN, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jnbutler
Default

Is there someone still monitoring this forum? Please help!

jnbutler
  #3 (permalink)  
Old July 7th, 2007, 10:11 AM
Authorized User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: La Vergne, TN, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jnbutler
Default

I guess everyone is on holiday in Europe!


jnbutler
  #4 (permalink)  
Old July 31st, 2007, 04:04 AM
Registered User
 
Join Date: Jul 2007
Location: , , France.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you don't get any error about the creation of the logfile, it's probably a working directory problem.

In Visual C# Express, look at your project proprieties:
Project > Settings (make sure you've selected all configuration or else it will only change the current config, i.e. debug) > Properties > Configuration Properties > Debugging > Working Directory

And set the working directory to your project output directory. By default, it's the project directory and not the output one, so the logfile should be generated here and not next to your executable file.

It's also a common problem when your app don't find some ressource files even if you'r sure about their location. Always look at the working directory if files are not found.


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log to server's event log LenexaKS Access VBA 4 March 11th, 2008 12:49 PM
How do Trace and write log files in ASP.NET2.0? arunkishore82 ASP.NET 2.0 Basics 0 March 20th, 2006 02:04 AM
Log file tsimsha Classic ASP Databases 1 April 30th, 2005 04:27 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM
Log file Asish SQL Server 2000 3 November 10th, 2003 02:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.