Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Apr 5, 2021

Embedders making use of the embedder API always ended up with a
hardcoded log tag of "flutter". Some embedders may wish to set a
different log tag. For example, the Fuchsia embedder sets its log tag
to a launch URL followed by "flutter".

If unspecified, we continue to default to "flutter".

Fixes flutter/flutter#79819

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.
  • The reviewer has submitted any presubmit flakes in this PR using the engine presubmit flakes form before re-triggering the failure.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@cbracken cbracken requested a review from chinmaygarde April 5, 2021 22:44
@flutter-dashboard flutter-dashboard bot added the embedder Related to the embedder API label Apr 5, 2021
Embedders making use of the embedder API always ended up with a
hardcoded log tag of "flutter". Some embedders may wish to set a
different log tag. For example, the Fuchsia embedder sets their log tag
to a launch URL followed by "flutter".

If unset, we continue to default to "flutter".

Fixes flutter/flutter#79819
@cbracken cbracken requested a review from jason-simmons April 5, 2021 22:56
Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

I could have sworn that this was already possible and looked up how I had done this in the past. Turns out, I was passing --log-tag= in via the command line args. This makes more sense.

@cbracken cbracken merged commit f09b189 into flutter:master Apr 6, 2021
@cbracken cbracken deleted the log_tag branch April 6, 2021 00:36
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 6, 2021
flar pushed a commit to flutter/flutter that referenced this pull request Apr 6, 2021
* 1d8d2df Rename EngineEmbedderApiModifier to EngineModifier (flutter/engine#25362)

* 057ed22 Roll Skia from b14a819122ee to 0a12b85f160f (5 revisions) (flutter/engine#25430)

* 079857d Roll Fuchsia Linux SDK from b22xnKMfp... to txu1APnex... (flutter/engine#25431)

* 23ac479 Extract Dart logging to the embedders (flutter/engine#25402)

* 5444e2b Remove the DartIsolate::PostMessage timeline event (flutter/engine#25433)

* 253a298 Roll Skia from 0a12b85f160f to 974c82150204 (1 revision) (flutter/engine#25434)

* 61dca0f Roll Dart SDK from c274ba72ec73 to 3dd1630ab4d4 (1 revision) (flutter/engine#25432)

* f09b189 Allow embedders to set a custom log tag (flutter/engine#25435)

* e74b649 Roll Fuchsia Mac SDK from F4eUNa2mh... to IKx9cvrtJ... (flutter/engine#25436)
duanqz pushed a commit to duanqz/engine that referenced this pull request Apr 16, 2021
Embedders making use of the embedder API always ended up with a
hardcoded log tag of "flutter". Some embedders may wish to set a
different log tag. For example, the Fuchsia embedder sets their log tag
to a launch URL followed by "flutter".

If unset, we continue to default to "flutter".

Fixes flutter/flutter#79819
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes embedder Related to the embedder API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support setting a custom log tag in the embedder API

3 participants