Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by MaT227 · Sep 26, 2014 at 01:59 PM · debuglogoutput

Standalone save output_log

I would like to know if it is possible to save the output_log or maybe to save the log to a different location.
I want to use a different file at each game instance. Is it possible ?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Chris_Dlala · Sep 26, 2014 at 10:04 PM

Hi, I'm not aware of a way of doing this. As a workaround, maybe you could register to the application events and create your own version of the output, but I'm not sure if you get all the same information. Other than that, maybe create a launcher that checks for the output file and renames/moves it before running the game's executable. I'm not sure if that helps =P

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MaT227 · Sep 29, 2014 at 06:00 AM 0
Share

Thank you for your answer, I think that the best idea is to create a launcher but how ?

avatar image Chris_Dlala · Oct 05, 2014 at 08:19 PM 0
Share

I'm not sure exactly how to make it cross-platform, but all you need is a simple program to run your executable with -logFile argument passed in (Thanks to @Adpist for that info). A simple C# console program should get you started but you may want to ask a new question to increase your chances of getting valuable info.

avatar image
0

Answer by Adpist · Oct 03, 2014 at 12:40 PM

Actually you can launch your exe with the -logFile parameter. you can provide a path and a specific log name. Not the best (having problems with this param as you can check here : http://answers.unity3d.com/questions/797592/-logfile-argument-with-special-characters.html)

something like "-logFile ./logs/log_date.txt". Absolute and relative paths both works.

Hope it helps !

/Adpist

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Chris_Dlala · Oct 05, 2014 at 08:07 PM 0
Share

I did not know that was an app argument - though it makes sense. So a launcher could check for log files and increment or pass in the date/time when running the game. Good find ;)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Health value isn't subtracting correctly 1 Answer

Can I see debug log(ex:printf) from C++ dll in Unity? 0 Answers

Less verbose Debug.Log ( Xcode ) 0 Answers

Same output_log.txt file being written to by multiple clients at once? 0 Answers

Debug.log output is not showing in device console for ios6 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges