/// <since_tizen> 3 </since_tizen>
public class Log
{
+ private static char[] sep = { '\\', '/' };
/// <summary>
/// Prints a log message with the VERBOSE priority.
/// </summary>
}
else
{
- int index = file.LastIndexOfAny(new char[] { '\\', '/' });
+ int index = file.LastIndexOfAny(sep);
string filename = file.Substring(index + 1);
Interop.Dlog.Print(priority, tag, "%s: %s(%d) > %s", filename, func, line, message);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public class InternalLog
{
+ private static char[] sep = { '\\', '/' };
/// <summary>
/// Prints a log message with the VERBOSE priority.
/// </summary>
}
else
{
- int index = file.LastIndexOfAny(new char[] { '\\', '/' });
+ int index = file.LastIndexOfAny(sep);
string filename = file.Substring(index + 1);
Interop.Dlog.InternalPrint(log_id, priority, tag, "%s: %s(%d) > %s", filename, func, line, message);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public class SecureLog
{
+ private static char[] sep = { '\\', '/' };
/// <summary>
/// Prints a log message with the VERBOSE priority.
/// </summary>
}
else
{
- int index = file.LastIndexOfAny(new char[] { '\\', '/' });
+ int index = file.LastIndexOfAny(sep);
string filename = file.Substring(index + 1);
Interop.Dlog.InternalPrint(log_id, priority, tag, "%s: %s(%d) > %s", filename, func, line, message);
}