Sitelet https://github.com/DragonBox/uplift/pull/84
Skip to content

Debug/add a log handler - #84

Merged
lacostej merged 13 commits into
DragonBox:masterfrom
scassard:debug/add_a_log_handler
May 29, 2019
Merged

lacostej merged 13 commits into
DragonBox:masterfrom
scassard:debug/add_a_log_handler

Conversation

@scassard

Copy link
Copy Markdown
Contributor

This PR aims at creating a Log handler for uplift. It dumps UnityEngine.Debug.Log console logs messages to an uplift.log file in order to make Uplift debugging easier.

Comment thread Assets/Plugins/Editor/Uplift/UpliftManager.cs Outdated
Comment thread Assets/Plugins/Editor/Uplift/UpliftManager.cs Outdated
Comment thread Assets/Plugins/Editor/Uplift/LogAggregator.cs Outdated

@niezbop niezbop left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor modifications, but otherwise looks ok!


public class LogHandler : IDisposable
{
public bool ShowStackTrace = false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming: showStackTrace! camelCasing. Same for the following vars

Comment thread Assets/Plugins/Editor/Uplift/LogHandler.cs
InstallPackages(targets);
using (LogHandler LH = new LogHandler(appendToCurrentLogFile: true, showStackTrace: false))
{
Debug.Log("> Install Dependenies with strategy " + strategy);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@lacostej
lacostej self-requested a review May 27, 2019 13:34

bool updateLockfile = (strategy != InstallStrategy.ONLY_LOCKFILE);
InstallPackages(targets, updateLockfile);
bool updateLockfile = (strategy != InstallStrategy.ONLY_LOCKFILE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird indentation in this file

@lacostej
lacostej merged commit de0187c into DragonBox:master May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants