The online Log Base 10 Calculator is used to calculate the log base 10 of a number x, which is generally written as lg(x) or log 10 (x). Log base 10, also known as the common logarithm or decadic logarithm, is the logarithm to the base 10. The common logarithm of x is the power to which the number 10 must be raised to obtain the.
Where would end up being the greatest 'regular' location to put an application's debug log document in a Windows user environment?
In this specific situation, it will be an program that is usually run as soon as and could move incorrect. It will be run by system administrator varieties who may require to inspect the log after the application is operate. Everytime the software is operate, a fresh log file is produced.
Choices that have been floated therefore far consist of:
- The plan index
- The consumer's desktop
- The user's regional Application Information listing.
I possess my preferred, but I pondered what the SO general opinion has been.
Take note: this will be related to this question, but we're working with an program that's just most likely to be run once by one user.
Local community♦
Darcy CasselmanDarcy Casselman1,98433 magic badges1919 silver badges2626 bronze badges
7 Solutions
The Application Data website directory would seem to end up being the perfect location, but it's an region that can be nearly undetectable. You require to give your users an easy method to obtain to it.
Have got your set up script develop a Log folder in the Software Data area for your plan, and consist of a hyperlink to the folder in your Begin menus.
Tag RansomTag Ransom230k3131 silver badges293293 magic badges520520 bronze badges
The 'standard' location for the log would be the AppData listing. However, really its up to you where you wish to shop them. As they are usually administrator (power users) then there should become no difficulties keeping the records in the exact same index as the application being operate. Actually in the MyDocuments of the consumer would become a great shout.
AdamAdam62.6k1616 magic badges128128 metallic badges200200 bronze badges
In the business I work for we use the (%Temperature% or %TMP%)CompanyOrProductNameLogs directoryUsing %APPDATA% may become problematic with running around users if the wood logs are several or massive : it slows down their login procedure.
GoJiTa972GoJiTa972
1.The program index lt;- not good. Ideally you will only have RX permissions on this folder.
2.The user's desktop lt;- formally can become accomplished, but I don't like this idea. Polluting desktop computer. I, as a consumer, don't like it.
3.The consumer's nearby Application Information directory website. lt;- better
My preference can be a subdirectory under the plan website directory (with a apparent title like 'DebugLog' or something identical). Permissions on that subdirectory should permit producing and composing data files ('Modification' will end up being great)
DmitryKDmitryK
4,92111 platinum logo1414 silver badges3131 bronze badges
If youEXPECTsomething to move wrong put it in the user's local Application Information directory site.
If you don't and simply desire to log anyways I might believe about actually using the temp index. The reasoning for this can be simple. If the program is just run once you will keep garbage in the Program Data directory site otherwise that nobody will ever need once again. In the temp you have at minimum the Possibility that it's heading to be cleansed up afterwards.
BTW: IMHO the greatest would be not not develop the log AS A FILE at all (log to storage) until something will go wrong. Then you can nevertheless provide a discussion where the user chooses where to conserve the log.
FoxfireFoxfire
ZoteZote3,89033 silver badges3636 sterling silver badges4343 bronze badges
Assuming you want to maintain log documents around a substantial quantity of time and they are meant to be used, go through I would put the log file in a sub-folder of the consumer's regional application data folder, accessible from home windows explorer by keying in
%localappdata%
.If they are usually temporary log files, only to end up being used in the event of program diagnostics then you should place them in the short-term folder, available from home windows explorer
cdigginscdiggins%temp%
.12.3k33 gold badges7878 metallic badges8585 bronze badges