# LogImportWarning(string, Object)

> Logs a warning message encountered during import.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.AssetImporters](/engine/6000.3/script-reference/unityeditor/assetimporters.md)
* **Assembly:** UnityEditor

```csharp
public void LogImportWarning(string msg, Object obj = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The warning message.**** (\[Object]\(/engine/6000.3/script-reference/unityengine/object)): Optional Object that is targeted by the warning.

### Remarks

Use this method to warn the user of a non-critical issue. This method outputs to the console. Traces in the console are linked to the asset.
