ForceCLI/force

lib/log logs everything as error

Closed this issue · 1 comments

Logs should probably be written to Stdout instead?

In any case, some lines that are logged using this are definitely not errors, for example:

Log.Info(fmt.Sprintf("Logged in as '%s' (API %s)\n", creds.UserInfo.UserName, ApiVersionNumber()))

Log.Info(fmt.Sprintf("Updated Endpoint URL in session to %s", creds.EndpointUrl))

These are diagnostic or informative messages rather than data returned by the command, so stderr is appropriate although multiple log levels might be useful. Everything is logged at the Info level right now.