Skip to content

Console.Writeline always outputs android tag as mono-stdout and is not configurable #2447

@softlion

Description

@softlion

Steps to Reproduce

  1. Create an android app
  2. Use Console.WriteLine("something")

Expected Behavior

The output is directed to the android native Log method, which takes 2 parameters. The first one is the "TAG", useful to filter the logcat on the app using the command adb logcat -s TAGNAME

This tag should be configurable.

Actual Behavior

TAG is a constant set in the mono android code of stdout and can not be changed.

Version Information

Xamarin Android SDK 9.1.0.38 (HEAD/61d16aa23)

Metadata

Metadata

Assignees

Labels

Area: Mono RuntimeMono-related issues: BCL bugs, AOT issues, etc.enhancementProposed change to current functionality.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions