Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring ASL logging #268

Closed
jmoody opened this issue May 31, 2016 · 3 comments
Closed

Configuring ASL logging #268

jmoody opened this issue May 31, 2016 · 3 comments

Comments

@jmoody
Copy link
Contributor

jmoody commented May 31, 2016

Is it possible to configure the ASL logging?

I would like to turn it off completely if possible.

I will admit that I haven't done a deep investigation of this - I thought it would be worth asking in case there was an obvious answer.

Thanks for your efforts!

@lawrencelomax
Copy link
Contributor

Are you talking about fbsimctl or direct use of the FBSimulatorControl framework? If it's the former, we could probably use a --silent flag in order to silence all logging. If it's the latter you should take a look at FBControlCoreGlobalConfiguration for enabling and disabling stderr and debug logging.

@jmoody
Copy link
Contributor Author

jmoody commented Jun 1, 2016

Thanks for the fast response.

FBControlCoreGlobalConfiguration for enabling and disabling stderr and debug logging.

Perfect. Exactly what I was looking for.

We are using the FBSimalatorControl framework directly.

The problem we are having is that ASL logs resist redirection; you cannot use >& to redirect stdout and stderr to a file.

Thanks!

@jmoody jmoody closed this as completed Jun 1, 2016
@lawrencelomax
Copy link
Contributor

The problem we are having is that ASL logs resist redirection; you cannot use >& to redirect stdout and stderr to a file.

You could also replace the implementation of FBControlCoreLogger with a logger that just does nothing, throws away it's input or otherwise doesn't write to stderr.

If there's anything else you need, let us know 👍

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

No branches or pull requests

2 participants