mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 06:13:21 +00:00
log service
This commit is contained in:
30
src/Android/Services/AndroidLogService.cs
Normal file
30
src/Android/Services/AndroidLogService.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Bit.Core.Abstractions;
|
||||
using System;
|
||||
|
||||
namespace Bit.Core.Services
|
||||
{
|
||||
public class AndroidLogService : ILogService
|
||||
{
|
||||
private static readonly string _tag = "BITWARDEN";
|
||||
|
||||
public void Debug(string message)
|
||||
{
|
||||
Android.Util.Log.WriteLine(Android.Util.LogPriority.Debug, _tag, message);
|
||||
}
|
||||
|
||||
public void Info(string message)
|
||||
{
|
||||
Android.Util.Log.WriteLine(Android.Util.LogPriority.Info, _tag, message);
|
||||
}
|
||||
|
||||
public void Warning(string message)
|
||||
{
|
||||
Android.Util.Log.WriteLine(Android.Util.LogPriority.Warn, _tag, message);
|
||||
}
|
||||
|
||||
public void Error(string message)
|
||||
{
|
||||
Android.Util.Log.WriteLine(Android.Util.LogPriority.Error, _tag, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user